Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

batch job executes

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
abnikant

New User


Joined: 12 Jan 2007
Posts: 9
Location: Noida

PostPosted: Thu Oct 08, 2009 11:52 am    Post subject: batch job executes
Reply with quote

Hi all,

A batch job executes a COBOL program (PROG1) which has 2 input files (logical names - IN01, IN02). The physical names of these input files are determined by another COBOL program (PROG0) which runs before PROG1. The program PROG0 outputs just one single file (logical name - INFLNAMS).

What would you expect in file INFLNAMS to be able to use it to specify the input files for PROG1 without any further processing of INFLNAMS?

If you have the above desired output in INFLNAMS, how would you specify the input files for PROG1 and what other changes would be required in the JCL?

Note: You can have separate JCLs for PROG0 and PROG1 if you want.


Please suggest....

Thanks
Abhi
Back to top
View user's profile Send private message

Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Thu Oct 08, 2009 12:41 pm    Post subject:
Reply with quote

what does DB2 has to do with this?
This thread need to move a correct location
Back to top
View user's profile Send private message
abnikant

New User


Joined: 12 Jan 2007
Posts: 9
Location: Noida

PostPosted: Thu Oct 08, 2009 1:27 pm    Post subject:
Reply with quote

db2 WILL NOT DO ANYTHING IT CAME BYDEFAULT OR I CHOOSEN THE WRONG...
Please tell the solution
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Thu Oct 08, 2009 1:35 pm    Post subject:
Reply with quote

Please PM at any of the morerator, They can do it and please try to post in the proper forum, this will help you to get proper solution, please post interview question in interview section.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1280
Location: Belgium

PostPosted: Thu Oct 08, 2009 1:36 pm    Post subject:
Reply with quote

http://ibmmainframes.com/viewforum.php?f=43
Back to top
View user's profile Send private message
abnikant

New User


Joined: 12 Jan 2007
Posts: 9
Location: Noida

PostPosted: Thu Oct 08, 2009 2:07 pm    Post subject: please suggest
Reply with quote

A batch job executes a COBOL program (PROG1) which has 2 input files (logical names - IN01, IN02). The physical names of these input files are determined by another COBOL program (PROG0) which runs before PROG1. The program PROG0 outputs just one single file (logical name - INFLNAMS).

What would you expect in file INFLNAMS to be able to use it to specify the input files for PROG1 without any further processing of INFLNAMS?

If you have the above desired output in INFLNAMS, how would you specify the input files for PROG1 and what other changes would be required in the JCL?

Note: You can have separate JCLs for PROG0 and PROG1 if you want
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Oct 08, 2009 8:36 pm    Post subject:
Reply with quote

Hello,

Why repost the original post that is neither db2 nor is it very clear. . .

This is being moved to "Interview Questions" unless there is some reason it should be elsewhere.

One way to do what i believe is being requested is to read the file with the dataset names, generate the proper jcl to run the program(s) using the specified dataset(s), and write this jcl to the "internal reader". There are multiple topics about using the internal reader in the forum. If you find something that is not clear, post what you found and your doubt.

Someone will be able to clarify.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Batch job tuning sgandhla Testing & Performance analysis 0 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us