Hi,
I want to edit a dataset (USER.TEST.SEQ) by submitting a
JCL. For this I have written a simple edit macro (Macr) and then written
following rexx (EDTREXX).EDTREXX looks like this :
However, after submission the JCL output gives following
error :
"READY
EXEC 'USER.TEST.SEQ(SAMGANGA)'
3 *-* ADDRESS ISPEXEC "LMINIT DATAID("DTPDS") DATASET('"YOURPDS"') ENQ(SHR
+++ RC(-3) +++
4 *-* ADDRESS ISPEXEC " LMOPEN DATAID("DTPDS") OPTION(INPUT)"
+++ RC(-3) +++
USER.TEST.INPUT
17 *-* ADDRESS ISPEXEC " LMMLIST DATAID("DTPDS") OPTION(FREE)"
+++ RC(-3) +++
18 *-* ADDRESS ISPEXEC " LMCLOSE DATAID("DTPDS")"
+++ RC(-3) +++
19 *-* ADDRESS ISPEXEC " LMFREE DATAID("DTPDS")"
+++ RC(-3) +++
However if I execute the above rexx by giving an 'ex' in
front of USER.TEST.EXEC(EDTREXX), the REXX execution goes on fine and the
macro is also executed yielding the intended results.
But I want the above REXX to be successfuly run when
submitted through JCL.
Please let me know we need to add any System libraries.Thanks.
hi,
you need to use exec card like bellow:
//ISPF EXEC PGM=IKJEFT01,DYNAMNBR=90,
// PARM='ISPSTART CMD(&CMD)'
which &cmd is the clist or rexx member.and also you must allocate ispf libraries in your jcl like ispllib and ...
i coded like that it is giving the MAX CC=998
and error information is:
READY
PROFILE PREFIX(userid)
READY
ISPSTART CMD(%SAMGANGA 'userid.WORK.SAMPLE') NEWAPPLN(ISR)
ISPI003 Following file was not preallocated:
ISPPROF
READY
END
Hi,
I bring a sample procedure so you can change it according to naming convention in your site.you can invoke it as a procedure or include it in your executing jcl.
i coded like that it is giving the MAX CC=998
and error information is:
READY
PROFILE PREFIX(userid)
READY
ISPSTART CMD(%SAMGANGA 'userid.WORK.SAMPLE') NEWAPPLN(ISR)
ISPI003 Following file was not preallocated:
ISPPROF
READY
END
I don't know what your EDIT Macro is doing, but for simple FIND/CHANGE or INSERT/DELETE operations, it sometimes seems like I'm the only one who finds it easier to code either an IPOUPDTE job or a TSO EDIT job.