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

What is the need of program id


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Muthukumar.PLindia

New User


Joined: 03 Jul 2006
Posts: 51
Location: Chennai

PostPosted: Mon Oct 09, 2006 1:29 pm
Reply with quote

what is the need of program id , anyway the load will be created with the pds's member name
Back to top
View user's profile Send private message
prashanth1

New User


Joined: 27 Sep 2006
Posts: 47
Location: Hyderabad

PostPosted: Mon Oct 09, 2006 2:28 pm
Reply with quote

In the subroutines the program name is identified by PROGRAM-ID.


ex : CALL PGM1 USING A B C

PGM1 should be specified in the PROGRAM-ID of called program. Otherwise it will throws error.

Can you pls correct me , if I wrong

Cheers,
Prashanth1
Back to top
View user's profile Send private message
Muthukumar.PLindia

New User


Joined: 03 Jul 2006
Posts: 51
Location: Chennai

PostPosted: Wed Oct 11, 2006 10:21 pm
Reply with quote

I guess the program-id wil not play a role in caling sub programs.. the member the progrm resides will be taken into account while calling the sub progs....
I have tried this
Back to top
View user's profile Send private message
tsnarayana1

New User


Joined: 11 Oct 2006
Posts: 1

PostPosted: Thu Oct 12, 2006 1:57 am
Reply with quote

Hi Prashanth1,

Your explanation is correct as In the subroutines the program name is identified by PROGRAM-ID.


Thanks
TS Narayana
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Oct 12, 2006 4:31 am
Reply with quote

PROGRAM-ID is used by the linker when linking a number of subprograms into one run unit, and by the CALL statement when transferring control to a subprogram.
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 Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top