I want to open a PS dataset which contains the PDS member name
Use the member and open the member in the another PDS dataset
find all pic9(10) and change it to 9(12)
and route the result to another datatset.
How Could I code it in Rexx.Anyone please help me out.
if RC = 0 then
DO I = 1 TO INREC.0
PGM = STRIP(INREC.I)
SAY ''PGM''
CALL RQSTDSET
IF RC /= 0 then
say 'ERROR:SOURCE PROGRAM "INREC.I" NOT FOUND '
EXIT
END
else
say 'THE FILE HAS NOT BEEN READ'
EXIT
"FREE F(INFIL)"
when i gave this its going to Else part ''THE FILE HAS NOT BEEN READ' .Please help me out in this too.Its also saying bad arthmetic conversion in DO I = 1 TO INREC.0 .
Joined: 14 Mar 2007 Posts: 3542 Location: Brussels once more ...
I would probably use something like
Code:
"ALLOC FI(INFIL) DA('SAMPLE.DSET') SHR REU'
'EXECIO * DISKR INFIL (STEM INREC. FINIS'
If RC = 0 then
DO I = 1 TO INREC.0
PGM = STRIP(INREC.I)
"Ispexec edit
dataset('dataset name(PGM)')
MACRO(macro)"
If RC <> 0
Then say something
END
"FREE F(INFIL)"
EXIT
ISPF Dialog Error
Command ===>
More: +
******************************************************************************
* ISPS102 *
* *
* Invalid service name *
* 'ALLOC' is not a recognized dialog service name. *
* *
* *
* *
* *
* *
* *
* Current dialog statement: *
* ALLOC FI(OUTFIL) DA('APPOFSDC.DEV.OUTPUT.DATASET') MOD REUSE *
* *
* Enter HELP command for further information regarding this error. *
* Press ENTER key to terminate the dialog. *
* *
* / Override termination and attempt to continue? (/ = Yes) *
* *