Hello there,
I was hoping if someone can shed some light on the following issue.
I have JCL which creates a dataset and then the next step in jcl calls a rexx script.
In the form
,//SYSTSIN DD *
,EXEC 'MYID.KA.REXX.EXEC(TEMP1)' 'MYID.KA.DISPDB.OUTPUT'
This rexx does some logic on the file generated in first step and depending upon the outcome, it prepares another JCL to send email.
My issue is whenever that REXX script runs the command ADDRESS TSO "SUBMIT " JCLDSN
The job fails with
READY
EXEC 'MYID.KA.REXX.EXEC(TEMP1)' 'AR62199.KA.DISPDB.OUTPUT'
IKJ56283I ACCOUNT INVALID IN JOB CARD. JOB CANCELLED
READY
END
The issue is the job card is not invalid.
If I run the rexx script directly via option 6 , it works fine and sends the email.
The email JCL generated by the REXX (JCLDSN) if submitted directly works fine
But for some reason when I enter the submit command in rexx it fails
Any idea?
Thanks in advance.