Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The COZZI-Create IFS Stream File (CRTSTMF) command creates an empty ASCII text file on the IFS and sets its CCSID to the CCSID specified on this command.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
STMF | New IFS Stream File name | Path name | Required, Positional 1 |
CCSID | Stream File CCSID | 1-65533, 819, *ASCII, *UTF8, *EBCDIC, *JOB | Optional, Positional 2 |
Top |
Specifies the IFS file name to be created. If the file already exists, no action is taken. Otherwise, the file is created as a Text file with the CCSID specified on the CCSID parameter of this command.
This is a required parameter.
Top |
Specifies the CCSID for the file being created.
Top |
Example 1: Simple Command Example
CRTSTMF STMF('NOTES.TXT')
This command creates the ASCII file named NOTES.TXT in the job's current direcotory. The CCSID will default to the PC ASCII CCSID which is 819.
Example 2: More Complex Command Example
CRTSTMF STMF('/home/iquery/logs/mylog.txt') CCSID(*UTF8)
This command creates the file named MYLOG.TXT in the path name /HOME/IQUERY/LOGS and assigns the file CCSID(1208) which is UTF-8.
Top |
*ESCAPE Messages
Top |