IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

dynamic calling using 88 leave variable


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
s.ayodhyawasi

New User


Joined: 16 Sep 2006
Posts: 13

PostPosted: Mon Apr 13, 2009 2:36 pm
Reply with quote

i want to change one program

from

01 var-one pic x(08) program1.


to

01 var-one pic x(08) program1.
88 cal-prog1 value 'program1'.
88 cal-prog2 value 'program2'.

and i'll set the value of var-one in starting. I can't think of any problem in this. Please suggest if you have any idea that it could lead to any problem.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Apr 13, 2009 2:56 pm
Reply with quote

this is a non-starter (invalid syntax):
Code:
01 var-one pic x(08) program1.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Apr 13, 2009 3:10 pm
Reply with quote

s.ayodhyawasi

Please use your eyes and brain before posting. What has this topic have to do with JCL.

Topic moved.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Apr 13, 2009 3:58 pm
Reply with quote

s.ayodhyawasi wrote:
I can't think of any problem in this. Please suggest if you have any idea that it could lead to any problem.
Please try what you have thought and then post us back if you get stuck up . . .
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Apr 13, 2009 4:44 pm
Reply with quote

Since the value contained in a variable is resolved at run-time for the CALL, yes it will work - once your syntax for defining your data is correct.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Apr 14, 2009 3:09 am
Reply with quote

Hello,

Why are 88's of interest for this?

Quote:
i want to change one program
The code can be changed, but what value does the change provide?

Suggest "i want to" is not a good reason to change a program icon_confused.gif
Back to top
View user's profile Send private message
dkarthikreddy

New User


Joined: 14 Mar 2008
Posts: 28
Location: bangalore

PostPosted: Thu Apr 16, 2009 12:49 pm
Reply with quote

icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Calling an Open C library function in... CICS 1
Search our Forums:

Back to Top