View previous topic :: View next topic
|
Author |
Message |
abnikant
New User
Joined: 12 Jan 2007 Posts: 9 Location: Noida
|
|
|
|
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 |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
what does DB2 has to do with this?
This thread need to move a correct location |
|
Back to top |
|
|
abnikant
New User
Joined: 12 Jan 2007 Posts: 9 Location: Noida
|
|
|
|
db2 WILL NOT DO ANYTHING IT CAME BYDEFAULT OR I CHOOSEN THE WRONG...
Please tell the solution |
|
Back to top |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
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 |
|
|
GuyC
Senior Member
Joined: 11 Aug 2009 Posts: 1281 Location: Belgium
|
|
Back to top |
|
|
abnikant
New User
Joined: 12 Jan 2007 Posts: 9 Location: Noida
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|