2.4.1.42.5 Examples

In the following example, 2 files are to be zipped (ddname’s FICIN01 and FIC02) named by the “-f” option, DDARCH (ddname of the archive) is named by the ”-a” option while the first file will be renamed (see the “-n” option).

m_FileAssign -d SHR FICIN01 ${DATA}/PKZIP_FICIN01
m_FileAssign -d SHR FIC02 ${DATA}/FIC.FILE01
m_FileAssign -d NEW,CATLG DDARCH ${DATA}/ARCH.FILE
m_Pkzip -f ‘FICIN01,FIC02’ -a DDARCH -n ’NEW_FICIN01,’

The following example shows how to use at the same time the options “-f” “-F” and “-n”.

-f ‘ddn1,ddn2,ddn3,pds;member1;member2’
-F “dsn1,dsn2,dsn3’
-n ‘,newddn2,newwddn3,newmb1,,newdsn1,newdsn2,’

The ddn1, member2 and dsn3 are not renamed (they are replaced by comma(,)).