View previous topic :: View next topic
|
Author |
Message |
prasanth_urs
New User
Joined: 04 Dec 2006 Posts: 44 Location: Pune,India
|
|
|
|
Can anyone of you please provide solution for this issue??
I have to invoke a job from a main job.
Is it possible?? if so, Please provide the syntax or an example?
Also please tell me whether any parameters (like the filenames) can be passed while invoking the job from the main job? |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Search on the forum with
IEBGENER or sysout = (*,INTRDR)
You will get that. This is disscussed many times already. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi There,
You can add the following step in ur main jcl
//SUB01 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=Name of the dataset that contain jcl,DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR),DCB=(LRECL=80,BLKSIZE=80)
// |
|
Back to top |
|
|
prasanth_urs
New User
Joined: 04 Dec 2006 Posts: 44 Location: Pune,India
|
|
|
|
Thanks Ekta,
But the other query is still on.
If i have to pass a file from the main Jcl to the invoking jcl then what is to be done?? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Then your main job is going to have to both create and submit the subsequent job. JCL doesn't take "parameters" pased from another job.
You may want to look into using the INCLUDE and SET parameters as a possible way to define a dataset name. |
|
Back to top |
|
|
|