use of fetchable in pl1

IBM's cross-platform compiler PL/I for MVS, VM & VSE, OS/390 and Enterprise PL/I for z/OS
amitpadhi
Posts: 4
Joined: Thu Dec 22, 2016 6:55 pm
Skillset: pl1 jcl db2
Referer: google

use of fetchable in pl1

Postby amitpadhi » Thu Dec 22, 2016 6:59 pm

Can anyone explain with example for fetchable use in pl1..





Thanks

User avatar
Akatsukami
Global moderator
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Skillset: Rexx, JCL, DB2/SQL, TSO/ISPF, PL/I
Referer: ibmmainframes
Location: Bloomington, IL
Contact:

Re: use of fetchable in pl1

Postby Akatsukami » Thu Dec 22, 2016 7:40 pm

Not in Forum Rules.

Moved to PL/I
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

Re: use of fetchable in pl1

Postby NicC » Thu Dec 22, 2016 8:07 pm

What do you not understand from the relevant manuals?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

amitpadhi
Posts: 4
Joined: Thu Dec 22, 2016 6:55 pm
Skillset: pl1 jcl db2
Referer: google

Re: use of fetchable in pl1

Postby amitpadhi » Fri Dec 23, 2016 10:51 am

This option indicates the procedure is dynamically fetched if necessary before invoking it. The FETCHABLE attribute is not valid on INTERNAL procedures. FETCHABLE procedures should not be linked into a load module that contains a MAIN procedure.

this is the note i got from manual but still want to know is it only for dynamic procedure module and not for static one how actually it works that i want to know.

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

Re: use of fetchable in pl1

Postby NicC » Fri Dec 23, 2016 4:14 pm

Research 'static' and 'dynamic' with regards to loading executable modules.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic