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
 

 

How to find Static Call or Dynamic Call

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
shriya reddy
Warnings : 1

New User


Joined: 05 Jun 2004
Posts: 43

PostPosted: Mon Aug 16, 2004 11:35 am    Post subject: How to find Static Call or Dynamic Call
Reply with quote

Hi Friends,

I am writing a cobol pgm in that i call three sub modules(A,B,C).

if i call these modules Dynamically where i specify these modules called dynamically.
if i call these modules Statically where i specify these modules called Statically.

Is there any syntax for these dynamic call & staticcall in cobol.
please show me thru example.


Bye
Shriya.
Back to top
View user's profile Send private message

sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 151
Location: Tokyo, Japan

PostPosted: Mon Aug 16, 2004 12:09 pm    Post subject:
Reply with quote

Hi Shriya,

For calling submodules DYNAMICALLY -

Code:
In Working Storage Section -

01 WS-PROGRAM        PIC X(08).

MOVE 'SUBPROGA' TO WS-PROGRAM
CALL WS-PROGRAM USING ....(Your Parameters)

MOVE 'SUBPROGB' TO WS-PROGRAM
CALL WS-PROGRAM USING ....(Your Parameters)

MOVE 'SUBPROGC' TO WS-PROGRAM
CALL WS-PROGRAM USING ....(Your Parameters)



For Calling STATICALLY, check your compiler option. If it is NODYNAM then use -

Code:
CALL 'SUBPROGA' USING ...(Your parameters)
CALL 'SUBPROGB' USING ...(Your parameters)
CALL 'SUBPROGC' USING ...(Your parameters)


Regards,
Sandip.
Back to top
View user's profile Send private message
sudarsanreddy_k

New User


Joined: 16 Aug 2004
Posts: 3
Location: chennai

PostPosted: Mon Aug 16, 2004 9:12 pm    Post subject: call
Reply with quote

IDENTIFYING STATIC AND DYNAMCI CALL THROUGH COBOL PRG:
static call uses literal while calling, where dynamic call uses identifier which should be declared in the working storage section.

IDENTIFYING THROUGH COMPILER:
for static call we have lked.syslin in compile program.

IDENTIFYING TRHOUGH RUN JCL :
in jcl for static call we mention 'nodyn' in parm parameter, for dynamci call we mention 'dyn' in parm parameter.
if nothing is mentioned in parm parameter then default is static.
Back to top
View user's profile Send private message
sudarsanreddy_k

New User


Joined: 16 Aug 2004
Posts: 3
Location: chennai

PostPosted: Mon Aug 16, 2004 9:13 pm    Post subject: call
Reply with quote

IDENTIFYING STATIC AND DYNAMCI CALL THROUGH COBOL PRG:
static call uses literal while calling, where dynamic call uses identifier which should be declared in the working storage section.

IDENTIFYING THROUGH COMPILER:
for static call we have lked.syslin in compile program.

IDENTIFYING TRHOUGH RUN JCL :
in jcl for static call we mention 'nodyn' in parm parameter, for dynamci call we mention 'dyn' in parm parameter.
if nothing is mentioned in parm parameter then default is static.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm


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