View previous topic :: View next topic
|
Author |
Message |
vtham
New User
Joined: 08 Aug 2007 Posts: 9 Location: Chennai
|
|
|
|
Hi All,
I have a requirement to submit my next jcl by using internal reader technique, usually when I submit a job with jobname eg. "ABCDEFGH", my RACF ID gets replaced in the place of first 7 characters with the last character "H" placed after it.
Here when I submit a job using internal reader technique, my RACFID is not getting placed at the first 7 positions of the job name, instead the same name as given in next JCL eg. "XYZABCDH" is used.
This makes me to move to the spool of "XYZABCD" rather than in the spool under my ID.
Is there any facility to have the jobs spooled under the ID who ever submits the job other than the jobname given in the JCL??
Please advise. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Could you try all jobs and use the OWNER filter? |
|
Back to top |
|
|
vtham
New User
Joined: 08 Aug 2007 Posts: 9 Location: Chennai
|
|
|
|
OWNER RACFID => list the jobs under that RACF, but when the i have a stream of jobs with different job names, I would be pushed to get into the spool of all the different jobs, I would like to have the JOBS under my spool. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
How is the JCL for the submitted job generated ? |
|
Back to top |
|
|
vtham
New User
Joined: 08 Aug 2007 Posts: 9 Location: Chennai
|
|
|
|
The JCL's are pre-created as different members in the PDS. they are not generated in run time. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can try another method: instead of submitting the jobs through INTRDR, you can write a tiny REXX (probably an Edit-Macro) to replace the jobname temporarily, then SUBMIT the member.
O. |
|
Back to top |
|
|
vtham
New User
Joined: 08 Aug 2007 Posts: 9 Location: Chennai
|
|
|
|
yes, REXX could be used...i already have one of that type, but I requirement is to use only JCL
could you please advise me a solution with JCL?? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
I don't think you can do it with JCL solely, since JCL is just a control language. You will have to use some application (IEBGENER, SORT, REXX, COBOL etc.).
O. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
If this
vtham wrote: |
The JCL's are pre-created as different members in the PDS. they are not generated in run time. |
and you can use
ofer71 wrote: |
You will have to use some application (IEBGENER, SORT, REXX, COBOL etc.). |
then perhaps the following JCL can help you:
Code: |
//RACFIDH JOB (@),'SUBMIT ANOTHER JCL',
// MSGCLASS=R,NOTIFY=@SYSUID,CLASS=0
//*
//STEP001 EXEC UCC11RMS,PARM=F
//*
//STEP002 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=HLQ.JCL(OUTREC),DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
/*
//* |
where HLQ.JCL(OUTREC) will contain the next JOB with JOB-name as your RACFIDH.
Hope this helps. |
|
Back to top |
|
|
|