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
 

 

Passing information through JCL as instream data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Passing information through JCL as instream data
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: 1845
Location: UK

PostPosted: Wed May 25, 2016 3:13 pm    Post subject:
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    Post subject:
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: 1845
Location: UK

PostPosted: Wed May 25, 2016 5:06 pm    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 1740
Location: NY,USA

PostPosted: Wed May 25, 2016 8:14 pm    Post subject:
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    Post subject:
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    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 retrieving envelope information out o... VintageReceiver TSO/ISPF 6 Thu Aug 10, 2017 8:13 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts copying data without knowing location Arun Raj DFSORT/ICETOOL 12 Thu Jul 20, 2017 1:03 pm


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