REXX w/ ISPEXEC VIEW and obtaining data from it

IBM's Command List programming language & Restructured Extended Executor
Jeff R
Posts: 27
Joined: Fri Dec 09, 2022 6:59 pm
Skillset: CA-7, JCL, SORT, Roscoe, TSO, REXX
Referer: just found you on the Internet

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

Postby Jeff R » Thu Dec 22, 2022 8:08 am

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

willy jensen
Posts: 474
Joined: Thu Mar 10, 2016 5:03 pm
Skillset: assembler rexx zOS ispf racf smf
Referer: saw it in the experts foprum thought I could help here

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

Postby willy jensen » Thu Dec 22, 2022 8:50 pm

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.

Code: Select all

"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.

Jeff R
Posts: 27
Joined: Fri Dec 09, 2022 6:59 pm
Skillset: CA-7, JCL, SORT, Roscoe, TSO, REXX
Referer: just found you on the Internet

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

Postby Jeff R » Thu Dec 22, 2022 9:33 pm

Thanks !...I missed that


  • Similar Topics
    Replies
    Views
    Last post