Giovanni's logo
IFS commands
this means Version 2
index
M
power search
blue line


Command SRCTOSTMF: Convert source member to stream file

This command converts one or more members of a source physical file to stream files.
                    Convert source mbrs to stmf's (SRCTOSTMF)
 Type choices, press Enter.

 From file  . . . . . . . . . . . FILE  __________   Name
   Library: . . . . . . . . . . .         *CURLIB___ Name, *LIBL, *CURLIB
 Member name  . . . . . . . . . . MBR   __________   Name, generic*, *FIRST, *ALL 
 To IFS directory . . . . . . . . DIR   _________________________________________
___________________
 To CCSID . . . . . . . . . . . . CCSID *JOB___      Number, *JOB
 To extension . . . . . . . . . . EXT   *NONE_       Character value
            
Figure 1 - Command CGIDEV2/SRCTOSTMF
  • FILE (From file) - Name of the source physical file containing the members to be converted to stream files.
  • MBR (Member name) - One of the following:
    • The name of the member to be converted
    • A generic member name (example: ROS*)
    • *FIRST, the first member of that source file
    • *ALL, all the file members
    Member names are used for the names of the converted stream files.
  • DIR (To IFS directory) - Name of the IFS directory for the converted stream files.
  • CCSID (To CCSID) - CCSID to be assigned to the converted stream files.
  • EXT (to extension) - Extension to be added to the names of the converted stream files.


Command CVTSTMFCCS: Convert stream files CCSID

This command converts one or more stream files (having the CCSID attribute value specified in parameter FRMCCSID) - of a given IFS directory - to the CCSID specified in parameter TOCCSID. Depending on the value specidied in parameter OPTION, the conversion is performed
  • either only for the CCSID attribute
  • or for the CCSID attribute and the data CCSID
                    Convert stream files CCSID (CVTSTMFCCS)

 Type choices, press Enter.

 IFS directory  . . . . . . . . . DIR       ___________________________________ 
___________________                                                             
 Stream file (generic) name . . . STMF      ___________________________________ 
_______________________________________________________________________________ 
_____________________ 
 From CCSID . . . . . . . . . . . FRMCCSID   _______     Number, *ANY           
 To CCSID . . . . . . . . . . . . TOCCSID    _______     Number                 
 1=just attribute, 2=also data  . OPTION     2__         1, 2                   
            
Figure 2 - Command CGIDEV2/CVTSTMFCCS
  • DIR (IFS directory) - IFS directory containing the stream files to be processed.
  • STMF (Stream file (generic) name) - The stream file(s) to be processed. Please specify:
    • Either the name of a single stream file: just that stream file will be processed.
      Example: 'report20220823.txt' .
    • Or a generic name to process only the stream files matching the specified generic name.
      Example: 'report2022*' .
    • Or *ALL to process all the stream files of the directory specified in parameter DIR .
  • FRMCCSID (From CCSID) - The CCSID external attribute that a stream file (in directory DIR) must have in order to be selected for undergoing the conversion.
    Enter *ANY if you want all the stream files in directory DIR be processed whatever value their CCSID attribute is.
  • TOCCSID (To CCSID) - The CCSID stream files (in directory DIR) must be converted to.
  • OPTION (1=just attribute, 2=also data) - Select one of the following:
    • 1 - Only the external CCSID attribute will be changed.
      (Note that usually the external CCSID attribute must match the data attribute, in order to allow correct representation of the data and to process the proper data strings. The convertion performed is the same you would obtain by using command
      CHGATR OBJ(...) ATR(*CCSID) VALUE(...) .
    • 2 (default value) - Both the external CCSID attribute and the data CCSID will be changed to the value specified in parameter TOCCSID.