See http://publib.boulder.ibm.com/infocenter/zos/v1r12/index.jsp?topic=%2Fcom.ibm.zos.r12.halu001%2Fmkd.htm
* The MKdir subcommand sends a request to the remote host FTP server to create a directory with name directory in the current working directory. When the request is sent to an MVS server, a PDS or PDSE is created if either a fully qualified MVS data set name is entered (for example, 'USER33.TEST.PDS'), or if the current working directory is an MVS data set name. For example, if the current working directory is USER33.TEST, a command MKdir PDS creates a PDS or PDSE named USER33.TEST.PDS. -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Hansen, Dave L - Eagan, MN Sent: Wednesday, July 24, 2013 1:09 PM To: [email protected] Subject: Help with FTP MKD using LIKE? Dear FTP Friends, I have been moving z/OS PDS datasets using FTP between two z/OS V1R13 systems. I was told I don't have to pre-allocate the datasets if I use LIKE with MKD. I tried: MKD 'VPS.PARMLIB1' - LIKE 'VPS.PARMLIB3' CD 'VPS.PARMLIB1' LCD 'VPS.PARMLIB1' MPUT * QUIT This didn't work: EZA1736I MKD 'VPS.PARMLIB1' - EZA1542I Usage: MKDIR directory .(like local_mvs_directory. EZA1735I Std Return Code = 44000, Error Code = 00007 I tried: MKD 'VPS.PARMLIB1' LIKE 'VPS.PARMLIB3' CD 'VPS.PARMLIB1' LCD 'VPS.PARMLIB1' MPUT * QUIT This didn't work: EZA1736I MKD 'VPS.PARMLIB1' LIKE 'VPS.PARMLIB3' EZA1542I Usage: MKDIR directory .(like local_mvs_directory. EZA1735I Std Return Code = 44000, Error Code = 00007 I tried: MKD "VPS.PARMLIB1" "(LIKE 'VPS.PARMLIB3'" CD "VPS.PARMLIB1" LCD "VPS.PARMLIB1" MPUT * QUIT This didn't work: EZA1736I MKD "VPS.PARMLIB1" "(LIKE 'VPS.PARMLIB3'" EZA1542I Usage: MKDIR directory .(like local_mvs_directory. EZA1735I Std Return Code = 44000, Error Code = 00007 I tried: MKD "VPS.PARMLIB1 (LIKE 'VPS.PARMLIB3'" CD "VPS.PARMLIB1" LCD "VPS.PARMLIB1" MPUT * QUIT This didn't work: EZA1736I MKD "VPS.PARMLIB1 (LIKE 'VPS.PARMLIB3'" EZA1701I >>> MKD VPS.PARMLIB1 (LIKE 'VPS.PARMLIB3' 501 A qualifier in "VPS.PARMLIB1 (LIKE 'VPS.PARMLIB3'" is more than 8 characters EZA1735I Std Return Code = 44501, Error Code = 00002 OK, What am I missing? Many thanks in advance. Dave ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected]<mailto:[email protected]> with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
