Page 1 of 1

How to check if a program is online screen or batch

PostPosted: Wed May 20, 2015 5:37 pm
by neo4u
Hi,

Is there anyway we could find out if a IMS program is DC or DB. I had to do this for a ~1000 programs so planning to automate it.
I searched a lot but could not found below points
1) If its DC the PSB will have TYPE=TP coded.
--> I cannot use it as in my shop PSB name may be different from program name.
2) By looking at the ENTRY statement in the program, the first PCB will be a I/O PCB.
--> Even this cannot be used, as we have diffent copybooks coded for I/O PCB.
3) Online enquiry by using the command /DISP PGM <pgm_name>. The screen will say "IS INVALID" if the program specified is not a screen program.
--> I could use this approach. But wanted to make sure that this works.

Thanks,
Neo.

Re: How to check if a program is online screen or batch

PostPosted: Wed May 20, 2015 5:42 pm
by BillyBoyo
Usually, by site convention, the name of the program indicates its use. Usually. In my experience, anyway

Re: How to check if a program is online screen or batch

PostPosted: Wed May 20, 2015 5:54 pm
by neo4u
Hi Billy,

Yes, but not always :) (in my shop atleast!!).