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

Passing information through JCL as instream data


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

New User


Joined: 13 May 2016
Posts: 3
Location: India

PostPosted: Wed May 25, 2016 2:22 pm
Reply with quote

Hi! Can someone please help me with this? The following is the question:

a)The salary and grade information should be passed from JCL as instream data.
b) Check the salary of an employee and get the grade from instream data and update the grade field in the input file.

I want to know how do I pass instream data from jcl and save it in an array, and after that how do I compare it with the data given in the input file.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed May 25, 2016 3:13 pm
Reply with quote

Code:
//ddname DD *

The rest is up to your program.

Note that your instream data must 80 byte records.

But, really, if you did not know this then you should be in the beginners forum (www.ibmmainframeforum.com)
Back to top
View user's profile Send private message
Pia Baruah

New User


Joined: 13 May 2016
Posts: 3
Location: India

PostPosted: Wed May 25, 2016 4:32 pm
Reply with quote

Hi Nic,
thanks for your reply. actually I am a fresher and new to mainframe. I will refer to that forum.

Btw can you please tell me how to use Search or Search All parameter to compare a number given in input file with a range of highest and lowest number given in an Array(Table).
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed May 25, 2016 5:06 pm
Reply with quote

No - because you do not say which language you are using although it does sound like cobol in which case have you referred to the manuals? There are two that you probably need more than most - the language reference and the programmer's guide.

You should also peruse the JCL manual so thatg you know what is NOT JCL - which is most things.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Wed May 25, 2016 8:14 pm
Reply with quote

Welcome!
Quote:
Btw can you please tell me how to use Search or Search All parameter to compare a number given in input file with a range of highest and lowest number given in an Array(Table).


There are two things.
1. Do a search on this forum or internet , you should get many solutions.
2. As directed post all these question to Beginners Forum as that is indeed for novice.
Back to top
View user's profile Send private message
Pia Baruah

New User


Joined: 13 May 2016
Posts: 3
Location: India

PostPosted: Thu May 26, 2016 9:50 am
Reply with quote

Thank you Rohit and Nic for your valuable suggestions..
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 Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top