REXX w/ ISPEXEC VIEW and obtaining data from it



IBM's Command List programming language & Restructured Extended Executor

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
Jeff R
 
Posts: 27
Joined: Fri Dec 09, 2022 6:59 pm
Has thanked: 4 times
Been thanked: 0 time

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

These users thanked the author willy jensen for the post:
Jeff R (Thu Dec 22, 2022 9:33 pm)
willy jensen
 
Posts: 455
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 69 times

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

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

Thanks !...I missed that
Jeff R
 
Posts: 27
Joined: Fri Dec 09, 2022 6:59 pm
Has thanked: 4 times
Been thanked: 0 time

Previous

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post