Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What is the need of program id

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: What is the need of program id
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    Post subject:
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    Post subject:
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Thu Oct 12, 2006 4:31 am    Post subject: Re: What is the need of program id
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us