Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us