View previous topic :: View next topic
|
Author |
Message |
arun85
New User
Joined: 09 Oct 2006 Posts: 10
|
|
|
|
I need to know whether in JCL, can we able to assign a certain value to a variable based on the value present in the another variable. For ex, i need to assign month name like Jan, Feb etc based on the input as 01, 02 etc. Here i have the possibility like i can get only the values 01, 02 only but some how i should reproduce it as Jan, Feb. I know it is simple in COBOL but whether it is possible in JCL? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You need to post sample input data and the output you want from the input. You also need to show what varibles are needed for the process.
Mention the recfm and lrecl of all inputs and outputs. |
|
Back to top |
|
|
arun85
New User
Joined: 09 Oct 2006 Posts: 10
|
|
|
|
Hi Thanks for the reply. But sorry i didnt get it clearly. I have a Symbolic Parameter which will provide a value say 01, 02 etc. Now consider i have 12 other Symbolic parameters having 3 digit code of months. Now how can i check the first date symbolic variable's value using an IF condition in JCL. In JCL, IF condition is used for RC, ABEND purposes etc. When i use Symbolic parameter in IF clause it is showing Error message. Is there any other way to pick the value using the above scenario. If you could provide me using an example, i would understand it better. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you send in the variables as you need them - not other values to be resolved.
Which sort product are you using? Which release? |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
What you want to achieve is not what JCL's IF statement is for. The JCL User's Guide shows it only for use for bypassing or executing steps conditionally in the subsection headed "Bypassing or Executing Steps Based on the Evaluation of Previous Steps".
Garry. |
|
Back to top |
|
|
|