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 - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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