Thank you, that was the trick I needed.

From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Dana Mitchell
Sent: Friday, May 24, 2024 4:45 PM
To: [email protected]
Subject: Re: Syntax error using Unix cp command with "-W" parameters


at the example in the man pages, do you need another set of quotes?:



cp -W "seqparms='RECFM=U,space=(500,100)'" file "//'turbo.gammalib'"





On Fri, 24 May 2024 20:01:02 +0000, Farley, Peter <[email protected]> 
wrote:



>What is wrong with this syntax for a cp command to copy a Unix file system 
>file to an MVS file:

>

>$ cp -W seqparms="SPACE=(CYL,(5,5)),RECFM=VB,LRECL=259,BLKSIZE=0"  
>$HOME/testfile.txt "//'TSOUSER.NEWFILE'"

>cp: FSUMF365 Syntax error on -W argument : Unknown keyword (5.

>

>I have read and re-read the Unix commands reference manual pages on the cp 
>command and the "-W seqparms=" parameter and I don't see what I am doing wrong 
>here.

>

>The "_UNIX03" environment variable in not set in this shell session.

>

>Peter

--



This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to