View previous topic :: View next topic
|
Author |
Message |
Muthukumar.PLindia
New User
Joined: 03 Jul 2006 Posts: 51 Location: Chennai
|
|
|
|
what is the need of program id , anyway the load will be created with the pds's member name |
|
Back to top |
|
|
prashanth1
New User
Joined: 27 Sep 2006 Posts: 47 Location: Hyderabad
|
|
|
|
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 |
|
|
Muthukumar.PLindia
New User
Joined: 03 Jul 2006 Posts: 51 Location: Chennai
|
|
|
|
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 |
|
|
tsnarayana1
New User
Joined: 11 Oct 2006 Posts: 1
|
|
|
|
Hi Prashanth1,
Your explanation is correct as In the subroutines the program name is identified by PROGRAM-ID.
Thanks
TS Narayana |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
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 |
|
|
|