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: 995
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 Sorting of hex values Saurabh_mi DFSORT/ICETOOL 10 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm


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