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

Assigning Values by checking input value


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arun85

New User


Joined: 09 Oct 2006
Posts: 10

PostPosted: Wed Dec 10, 2008 10:57 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Dec 10, 2008 11:01 am
Reply with quote

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
View user's profile Send private message
arun85

New User


Joined: 09 Oct 2006
Posts: 10

PostPosted: Wed Dec 10, 2008 11:39 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Dec 10, 2008 12:15 pm
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Dec 10, 2008 2:13 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts force tablespace using LISTDEF input DB2 1
Search our Forums:

Back to Top