Cobol
Moderators: dbzTHEdinosauer, Moderator Group
Static Call:
CALL 'PGRM1' USING VAR-1, VAR-2.
Dynamic Call:
CALL WS-PGRM1 USING VAR-1, VAR-2.
HTH.
CALL 'PGRM1' USING VAR-1, VAR-2.
Dynamic Call:
CALL WS-PGRM1 USING VAR-1, VAR-2.
Code: Select all
The WS-PGRM1 should have been declared in working-storage with a PIC of X(08).
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
The ONLY way is to look at the output of the linkage editor (IEWL) or the load module itself. If the module is being called DYNAMICALLY then it will not exist in the main module, if it is being called STATICALLY then it will be seen in the load module.
Last edited by asif321 on Sun May 06, 2012 10:01 am, edited 1 time in total.
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
any CALL variable is Dynamic.
to determine if a CALL literal
is Dynamic or Static,
one would also need to see the Compiler Options and the Linkedit Options and library setup.
as a result,
you can not determine if a CALL literal is dynamic or static
by just looking at the source.
As Asif321 indicated,
it is faster and easier to just look at the Load Module.
and congratulations Aisf321 for posting to a thread that has been dormant for 6 years.
to determine if a CALL literal
is Dynamic or Static,
one would also need to see the Compiler Options and the Linkedit Options and library setup.
as a result,
you can not determine if a CALL literal is dynamic or static
by just looking at the source.
As Asif321 indicated,
it is faster and easier to just look at the Load Module.
and congratulations Aisf321 for posting to a thread that has been dormant for 6 years.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page