Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Combining two jobs into one

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
kiran_65

New User


Joined: 01 Apr 2005
Posts: 30

PostPosted: Fri May 23, 2008 6:00 pm    Post subject: Combining two jobs into one
Reply with quote

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
View user's profile Send private message
References
PostPosted: Fri May 23, 2008 6:00 pm    Post subject: Re: Combining two jobs into one Reply with quote

dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 1519
Location: germany

PostPosted: Fri May 23, 2008 6:18 pm    Post subject:
Reply with quote

let us see your jcl
Back to top
View user's profile Send private message
kiran_65

New User


Joined: 01 Apr 2005
Posts: 30

PostPosted: Fri May 23, 2008 6:45 pm    Post subject:
Reply with quote

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
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3173
Location: Charlotte,NC USA

PostPosted: Fri May 23, 2008 10:32 pm    Post subject: Reply to: Combining two jobs into one
Reply with quote

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
View user's profile Send private message
vijaynagabhairava

New User


Joined: 13 Apr 2008
Posts: 3
Location: India

PostPosted: Sat May 24, 2008 4:18 pm    Post subject:
Reply with quote

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
View user's profile Send private message
satheeshkamal

New User


Joined: 09 Jan 2007
Posts: 13
Location: Chennai

PostPosted: Mon May 26, 2008 4:48 pm    Post subject:
Reply with quote

Could you post how exactly you refer your file in proc KHRU1923 and in KHRU1924?
Back to top
View user's profile Send private message
satheeshkamal

New User


Joined: 09 Jan 2007
Posts: 13
Location: Chennai

PostPosted: Mon May 26, 2008 4:50 pm    Post subject:
Reply with quote

oops!! sorry...i think i should wear glasses... icon_eek.gif

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1