|
View previous topic :: View next topic
|
| Author |
Message |
s.ayodhyawasi
New User
Joined: 16 Sep 2006 Posts: 13
|
|
|
|
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 |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
this is a non-starter (invalid syntax):
| Code: |
| 01 var-one pic x(08) program1. |
|
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
s.ayodhyawasi
Please use your eyes and brain before posting. What has this topic have to do with JCL.
Topic moved. |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
| 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 |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
| 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 |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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  |
|
| Back to top |
|
 |
dkarthikreddy
New User

Joined: 14 Mar 2008 Posts: 28 Location: bangalore
|
|
| Back to top |
|
 |
|
|