View previous topic :: View next topic
|
Author |
Message |
meharnafis
New User
Joined: 28 May 2008 Posts: 5 Location: Noida
|
|
|
|
How to find out copy book for a dataset from the name of dataset used in the jcl only? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Ask your peers how they do it. This is a site specific question. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
ask development support, they know about the environment |
|
Back to top |
|
|
meharnafis
New User
Joined: 28 May 2008 Posts: 5 Location: Noida
|
|
|
|
This is one of the interview questions that I was asked. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
one of the most stupid questions asked...
You cannot do it
there could be zillions of datasets with the same layout ( using the same copybook )
only the operations and application documentation can tell |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
As this is an interview question, a lay man kind of answer can be -- Using ISPF 3.14, search the JCL in which this DSN is created/used, pick the DD name from there and search that DD name in the COBOL source library. You'll get the program using that DD name and so the layout.
For the sake of discussion, let's assume there is only one copybook per DSN -- though what Enrico has said is the actual and practical situation. This question is kind of BS for an interview. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
A variation on Anuj's approach:
Once you find the dsn in the JCL (it will probable appear in more than 1 JOB or step), find the associated PGM that uses the DSN. Then look at the associated FD for the copybook. If not there, it's probably in WS. Check the READ/WRITE stmts for FROM/INTO.
I'll leave the rest up to you. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Thanks Jack -- that's rather straight forward. Not sure why did I not think to find the associated PGM that uses the DSN, ..mmmm... why in the heaven I thought to search in the "source-base-library" . . . ... that's ofcourse time-consuming... |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Anuj,
Thanx for the "attaboy". On another point, you said:
Quote: |
This question is kind of BS for an interview |
I don't know about that. Most pgmmrs spend a lot of time searching JCL/SOURCE Libs.
I think that if a pgmmr can't do that, (s)he operates under a handicap, so it might be something for an employer to look for. |
|
Back to top |
|
|
|