RXS_GetStmf()
This subprocedure retrieves up to 16MB of data from a specified IFS stream file.
Subprocedure Prototype
|
Returns data retrieved from the specified IFS stream file. |
|
RXS_GetStmfDS_t data structure used to configure the RXS_GetStmf() call and specify the IFS stream file to read. |
|
|
|
Holds the data retrieved from the specified IFS stream file. |
|
RXS_GetStmfDS_t data structure used to configure the RXS_GetStmf() call and specify the IFS stream file to read. |
Example Code
*--------------------------------------------------------------
* This example code reads the contents of the file
* /tmp/rxs_getstmf.txt into the Data field.
*--------------------------------------------------------------
H DFTACTGRP(*NO) BNDDIR('RXSBND') ACTGRP(*CALLER)
/copy QRPGLECPY,RXSCB
D GetStmfDS DS LikeDS(RXS_GetStmfDS_t)
D Inz(*LikeDS)
D Data S Like(RXS_Var64Kv_t)
/free
reset GetStmfDS;
GetStmfDS.Stmf = '/tmp/rxs_getstmf.txt';
Data = RXS_GetStmf( GetStmfDS );
*INLR = *ON;
/end-free
*--------------------------------------------------------------
* This example code reads the contents of the file
* /tmp/rxs_getstmf.txt into the Data field.
*--------------------------------------------------------------
H DFTACTGRP(*NO) BNDDIR('RXSBND') ACTGRP(*CALLER)
/define RXSV6R1
/copy QRPGLECPY,RXSCB
D GetStmfDS DS LikeDS(RXS_GetStmfDS_t)
D Inz(*LikeDS)
D Data S Like(RXS_Var64Kv_t)
/free
reset GetStmfDS;
GetStmfDS.Stmf = '/tmp/rxs_getstmf.txt';
RXS_GetStmf( Data : GetStmfDS );
*INLR = *ON;
/end-free
Data Structures
|
|
|
|
|
|
|
Specifies IFS path to a stream file to retrieve. |
|
The CCSID to convert the data read from the IFS stream file into. |
|
Internal use only |
|
Internal use only |