Page 1 of 1

How to find program/copybook name from a file

PostPosted: Wed Jun 09, 2010 12:26 pm
by aditya.vartak
Hi

I would like to know, how can I find a program name from a given file name ?

ex : I have a file name : PCPS.NDM.PCPSMIPR.NCONSENT.RETURN

Now I want to trace a program name in which this is getting created. Getting a name of the program will help me to find the copy book layout structure of the file.

Thanks & Regards,
Aditya Vartak

Re: How to find program/copybook name from a file

PostPosted: Wed Jun 09, 2010 12:36 pm
by swd
I am assuming that the program is executed from some JCL? This being the case, you can search your JCL libraries for this dataset name and find the JCL member that creates the dataset. You can then see what program is being executed, so you can look at that to find the copybook for the dataset.

Cheers
Steve

Re: How to find program/copybook name from a file

PostPosted: Wed Jun 09, 2010 12:44 pm
by enrico-sorichetti
but the fastest way would be to look at the application programming documentation

Re: How to find program/copybook name from a file

PostPosted: Sat Jun 12, 2010 3:13 pm
by Anuj Dhawan
I usually do it the way Steve has suggested, however, usually HLQs are symbolic parameters so if you search for a "qualified" DSN you might get out of luck - you may try searching for "sub-set" of data-set names...

On the other hand, SMF records will have the info which process has generated what Data/dat-set BUT for such a task working with SMF records, is probably, waste of time and should be last choice, if it is ever.