IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

batch job executes


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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
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
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: 1281
Location: Belgium

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

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
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

Moderator Emeritus


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

PostPosted: Thu Oct 08, 2009 8:36 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Batch install term/printer CICS 2
No new posts File Aid Batch IBM Tools 7
Search our Forums:

Back to Top