Page 3 of 3

Re: REXX w/ ISPEXEC VIEW and obtaining data from it

PostPosted: Thu Dec 22, 2022 8:08 am
by Jeff R
so last part is to write the member modified in VIEW mode to an existing PDS as a new member using CREATE. When I add the following line (LASTLINE is a variable equal to the numeric value of the last line) :
"CREATE CCP.BASE.REXX.MFOPS(TESTPROC) 1 "LASTLINE
I get the following error :
Data set not allocated
In a macro the target data set must be allocated for the CREATE command
I do not see an ALLOCATE command within the ISREDIT commands and so I tried adding
"ALLOCATE DDNAME(INFILE) DSNAME('CCP.BASE.REXX.MFOPS') SHR"
prior to
ADDRESS ISREDIT
"MACRO"
this doesn't cause any error/issue but I still get the same error from the CREATE

Re: REXX w/ ISPEXEC VIEW and obtaining data from it

PostPosted: Thu Dec 22, 2022 8:50 pm
by willy jensen
Is CREATE CCP.BASE.REXX.MFOPS a fully qualified name? In which case you should put single quotes around it. I recommand always use quoted fully qualified names i.e.
"CREATE 'CCP.BASE.REXX.MFOPS(TESTPROC)' 1 "LASTLINE

to avoid confusion.
Your ALLOCATE will not help you as CREATE does not take a DDname as argument.

Re: REXX w/ ISPEXEC VIEW and obtaining data from it

PostPosted: Thu Dec 22, 2022 9:33 pm
by Jeff R
Thanks !...I missed that