MDSRC2IFS - Convert Source Members to IFS
Overview
The Convert Source Members to IFS (MDSRC2IFS) command provides the ability to copy some or all members in a source file to various IFS folders depending on the source type.
Restrictions
- The command must be run interactively from a command shell within MDCMS
- The user performing the command must have authority to edit promotion levels (MDSEC code md/4)
Parameters
LIB - Source Library
Description: The Library containing the source file
Required: Yes
Values: - character-value - The name of an existing library in the current namespace
FILE - Source File
Description: The source file containing members to copy to the IFS
Required: Yes
Values: - character-value - The name of an existing source file in the library (LIB)
PATH - Parent Path
Description: The full path name from the IFS root for the parent folder that the members will either be directly copied to or that will hold subfolders for the source.
Required: Yes
Values: - character-value - The full path starting with / to the parent folder for the IFS source
CCSID - CCSID of IFS file
Description: Specifies the CCSID that should be applied when copying the source member to the IFS file.
Values: - *CCSID (default) - A CCSID in the Microsoft Windows encoding scheme - character-value - Any CCSID value that is accepted on the CPYTOSTMF STMFCCSID parameter
AUTH - IFS Authority Template
Description: Specifies the MDCMS Object Authority template of type *IFS that contains the authority definitions to apply to each generated IFS file and each created folder.
Values: - *DFTIFS (default) - The template of name *DFTIFS will be applied - character-value - An existing Object Authority Template of type *IFS
REPL - Replace Existing
Description: Specifies if an existing IFS file should be overridden.
Values: - *NO (default) - If the IFS file already exists, it won't be replaced by a new copy of the source member - *YES - The member will be copied to the IFS file, even if it already exists
The MDSRC2IFS Confirmation Screen
Once Enter is pressed on the command prompt, a confirmation screen will be displayed that lists each source type in the source file along with the number of members of that type.
Opt - Enter '1' to copy all source members of the given Member Type.
IFS File Type - The IFS file type that will be applied to the copied members of the given Member Type. The value is case-sensitive. The name of each IFS file will be the same as the source member name in upper-case.
Subfolder - an optional subfolder name to place the IFS file in under the parent path (PATH parameter). If left blank, the IFS file will be placed directly under the parent path. If provided, the subfolder will be created if it does not already exist. The subfolder name is case-sensitive. The subfolder can be multiple levels deep if required (e.g. /RPG/modules).