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
 

 

dynamic calling using 88 leave variable

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: dynamic calling using 88 leave variable
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: 6967
Location: porcelain throne

PostPosted: Mon Apr 13, 2009 2:56 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Apr 13, 2009 3:10 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Apr 13, 2009 3:58 pm    Post subject: Re: dynamic calling using 88 leave variable
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: 6967
Location: porcelain throne

PostPosted: Mon Apr 13, 2009 4:44 pm    Post subject:
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

Site Director


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

PostPosted: Tue Apr 14, 2009 3:09 am    Post subject:
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    Post subject:
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    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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm


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