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
 

 

Assigning Values by checking input value

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Assigning Values by checking input value
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

Site Director


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

PostPosted: Wed Dec 10, 2008 11:01 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Dec 10, 2008 12:15 pm    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 991
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Dec 10, 2008 2:13 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am


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