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
 

 

Static and Dynamic calls

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Anil Kumar Govindula

New User


Joined: 06 Aug 2008
Posts: 9
Location: India

PostPosted: Mon Jul 20, 2009 6:12 pm    Post subject: Static and Dynamic calls
Reply with quote

Hi Friends,

I've a strange scenario.

I've a main pgm which calls another program dynamically. I modified my main program for one of my requirements (basically to fix a CJDAP and CPREP problem which makes use of this pgm). Strictly speaking, I don't need to recompile my called module since it is a dynamic call.

And when I run CJDAP on a test pkg it successfully finishes but when I run CPREP, it fails saying that called module is not found. Ultimately I recompiled the called module to make both of them work. But not getting why I've to recompile even if this is a dynamic call.

[I know you are aware of CJDAP and CPREP tools. But still wanted to tell that these tools just function same as JCLPREP]

Any clue?

Regs...AKG
Back to top
View user's profile Send private message

manojkumar.sesuraj

New User


Joined: 15 Apr 2009
Posts: 43
Location: Mumbai

PostPosted: Tue Jul 21, 2009 9:34 am    Post subject:
Reply with quote

Have you kept both modules in your same test library?
Back to top
View user's profile Send private message
vikramsreddy

New User


Joined: 03 Sep 2006
Posts: 7
Location: Chicago, USA

PostPosted: Fri Jul 24, 2009 4:06 am    Post subject:
Reply with quote

I have used FPREP and I havent seen it go through Load modules. Does CJDAP go through all concatenated libraries holding the load modules?
Back to top
View user's profile Send private message
Anil Kumar Govindula

New User


Joined: 06 Aug 2008
Posts: 9
Location: India

PostPosted: Thu Aug 13, 2009 8:12 pm    Post subject: I have used FPREP and I havent seen it go through Load modul
Reply with quote

well, this too doesn't go thru them.. The back-end of CJDAP, CPREP uses this cobol program to extract the package information and tabulate them internally.
Back to top
View user's profile Send private message
vikramsreddy

New User


Joined: 03 Sep 2006
Posts: 7
Location: Chicago, USA

PostPosted: Thu Aug 13, 2009 8:46 pm    Post subject:
Reply with quote

Hey Anil,

Could you please send me the screenshot of the Calls you are making. If I were you, I would check if all the calls in the program were dynamic.
Call WS-PROGRAM-NAME where WS-PROGRAM-NAME will contain the name of the program to be dynamically called. Sorry I am getting back to the basics but its worth checking icon_smile.gif

Also you could ignore your CPREP and run the program to see if its working fine. Lets take it from there.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Aug 13, 2009 10:55 pm    Post subject:
Reply with quote

Hello,

Quote:
Could you please send me the screenshot of the Calls you are making.
Please do not post screenshots. They are just a waste of space and introduce a lot of clutter.

Use Copy/Paste and the "Code" tag to post info from a maniframe terminal session. Use Preview to see the post as it will appear to the forum.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Aug 13, 2009 11:02 pm    Post subject: Reply to: Static and Dynamic calls
Reply with quote

Assuming this is Batch and you're performing a Dynamic Call, then compiler option DYNAM must be specified during the compile/link.

Bill
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Aug 14, 2009 12:59 am    Post subject:
Reply with quote

Hello,

Quote:
then compiler option DYNAM must be specified during the compile/link.
Only if CALL 'literal' is used?

If CALL ws-field is used, DYNAM is generated as the module called cannot be resolved . . .
Back to top
View user's profile Send private message
loga_nathan_m

New User


Joined: 07 Jun 2007
Posts: 40
Location: India

PostPosted: Wed Oct 28, 2009 3:12 pm    Post subject: Help Regarding CJDAP
Reply with quote

Hi,

Can CJDAP be used by everyone working in Changeman Package?? Cos one of my friend was not able to use it in his system??
Is there any access that has to be given by the Administrator so that he can use it or is there some other problem??
Please help me on this.

TIA

Loga.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Oct 28, 2009 7:06 pm    Post subject:
Reply with quote

Hello,

Quote:
Please help me on this.

Does this have anything to do with this topic?

Please advise. . .

Careless posting will get very slow (or no) useful replies icon_sad.gif
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 Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm
No new posts Need to create file with Dynamic Name... kapil27 JCL & VSAM 4 Wed May 25, 2016 9:45 am
No new posts Sending system service calls by AIBTDLI. lind sh IMS DB/DC 1 Wed Mar 16, 2016 6:51 pm


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