Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts Code Coverage and static analysis too... Aditya.Srivastava PL/I & Assembler 2 Fri May 25, 2018 12:48 pm
No new posts using CALL PLIRETC(somevalu) Pedro PL/I & Assembler 1 Wed May 09, 2018 10:25 pm
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us