// SET AGS='x'
// SET QUOTE=''''
// SET ENV=T
// SET CV=03
// SET CD="E./servername/dir_p/OUT''/SamPLE."E
//FTP1 EXEC PROC=FTP,APPL='AGS',BOXNM='AGSA',FROMTO='GET',
// FILIN="E.FIL.AGSU1100.OKE.&AGS."E.,CD="E.&CD."E.
// FILOUT=AGS&ENV..CV&CV..FIL.AGSOK
Look at the cd variable, it containa the lower case, upper case and APOSTROPHE('). i want to pass that cd value in the ftp step.
but the above jcls is giving the below mentioned error.
INCORRECT USE OF APOSTROPHE ON THE EXEC STATEMENT.
Joined: 20 Feb 2009 Posts: 108 Location: Kansas City
Superk has the right idea. Apostrophes inside string literals are compressed two to one by the system. So
Code:
// SET CD="E./servername/dir_p/OUT''/SamPLE."E
Should be:
Code:
// SET CD='./servername/dir_p/out''''/Sample.'
I believe four apostrophes are required in this case because the 2->1 compression will happen twice, once when the SET is evaluated and once again when the parameter is passed to the EXEC (see page 5-19 in the 'MVS JCL Reference' manual on the IBM site).
thanks mtaylor.
i tried (// SET CD='./servername/dir_p/out''''/Sample.' ) . In my jcl next step is rexx execution step. its substituting the correct value