|
|
| Author |
Message |
kiran_65
New User
Joined: 01 Apr 2005 Posts: 30
|
|
|
|
Hi Friends,
I have the following scenario.
There is one job performing NDM (getting file from server to mainframe).
The second Job is processing the file.
I want to combine the two jobs into a single job.
I tried to combine into a single job. The following is the problem I am facing.
The NDM step copies the file into GDG. I have used the the same file in the job using (+1) version. But the job ran by taking previous version (-1). I have tried by keeping (0) version. but it is showing file not present.
Note: the two jobs call different proc's
Please help me.
Let me know if the query is not understandable.
Thanks
Kiran |
|
| Back to top |
|
 |
References
|
Posted: Fri May 23, 2008 6:00 pm Post subject: Re: Combining two jobs into one |
 |
|
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1519 Location: germany
|
|
|
|
| let us see your jcl |
|
| Back to top |
|
 |
kiran_65
New User
Joined: 01 Apr 2005 Posts: 30
|
|
|
|
Ths JCL is as follows:
| Code: |
// EXEC KHRU1923
//S1 EXEC KHRU1924
//*
//STEP0060 EXEC PGM=IEBGENER,
// COND=(0,NE,S1.STEP0050)
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//*
//SYSUT1 DD DSN=SYS1.KROGER.CTLLIB(SOUCMAI2),DISP=SHR
// DD DSN=SYS1.KROGER.CTLLIB(PEYEMAI3),DISP=SHR
//*
//SYSUT2 DD SYSOUT=(B,SMTP),LRECL=80
|
The step EXEC KHRU1923 is the NDM step.
The step EXEC KHRU1924 is the proc processing the file.
Let me know if this doesn't clarify.
in the KHRU1924, the file used is D922.KHRSQ.PDETAIL.HOU.KHRD1920(0).
I also tried with D922.KHRSQ.PDETAIL.HOU.KHRD1920(+1), then it is showing file not catalog.
Thanks
Kiran. |
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3173 Location: Charlotte,NC USA
|
|
|
|
| This concept is never going to work. You need to re-think your approach. Keeping the two jobs is the best option, in my opinion. |
|
| Back to top |
|
 |
vijaynagabhairava
New User
Joined: 13 Apr 2008 Posts: 3 Location: India
|
|
|
|
Hi Kiran,
I am not sure wether the following logic works or not. You can give a try if you want to.
" Instead of copying the job directly into GDG, copy it to a temporary dataset(like &&sample) and pass it to the next step and prcoess it. Then you just add a simple copy step(using the utility IEBGENER) at the end of job to copt the data present in the temp dataset to GDG"
Once again, I am not sure wether it actually works or not. It is upto you to decide wether to give a try to it or not.
If you give a try to this, please let me know wether it has worked or not.
Thanks
Vijay |
|
| Back to top |
|
 |
satheeshkamal
New User
Joined: 09 Jan 2007 Posts: 13 Location: Chennai
|
|
|
|
| Could you post how exactly you refer your file in proc KHRU1923 and in KHRU1924? |
|
| Back to top |
|
 |
satheeshkamal
New User
Joined: 09 Jan 2007 Posts: 13 Location: Chennai
|
|
|
|
oops!! sorry...i think i should wear glasses...
| Quote: |
I also tried with D922.KHRSQ.PDETAIL.HOU.KHRD1920(+1), then it is showing file not catalog.
|
Is this showing during JCL Check?
If yes, it won't give you problem when you run the JCL |
|
| Back to top |
|
 |
|
|