RXS_PutStmf()
This subprocedure writes the contents of a field up to 16MB in size to an IFS stream file.
Subprocedure Prototype
|
|
|
Data to write to the IFS stream file. |
|
RXS_PutStmfDS_t used to configure the write operation, such as the file path to write to. |
Example Code
*--------------------------------------------------------------
* This example code writes the value <data>The quick brown fox
* jumps over the lazy dog</data> to the file /tmp/rxs_putstmf.txt
*--------------------------------------------------------------
H DFTACTGRP(*NO) BNDDIR('RXSBND') ACTGRP(*CALLER)
/copy QRPGLECPY,RXSCB
D PutStmfDS DS LikeDS(RXS_PutStmfDS_t)
D Inz(*LikeDS)
D Data S Like(RXS_Var64Kv_t)
/free
Data = '<data>The quick brown fox jumps over the lazy dog</data>';
RXS_ResetDS( PutStmfDS : RXS_DS_TYPE_PUTSTMF );
PutStmfDS.Stmf = '/tmp/rxs_putstmf.txt';
RXS_PutStmf( Data : PutStmfDS );
*INLR = *ON;
/end-free
Data Structures
|
|
|
|
|
Internal use only |
|
|
|
Specifies an IFS path to a stream file to write to. |
|
Determines whether to append the data to the file (RXS_YES), or to overwrite the file (RXS_NO). Valid Values:
Default Value: |
|
The CCSID of the IFS stream file to be created/written to. |
|
The CCSID of the data being passed. Note: This is typically optional as internally RXS_PutStmf() will assume the data you're passing is the same CCSID as the current job. |
|
Internal use only |
|
Internal use only |