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: 1714
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: 1714
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: 1609
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 Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts How to move a long alphanumeric data ... lind sh COBOL Programming 6 Mon Dec 05, 2016 7:51 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts ODPP(Optim Data privacy Provider) Iss... Rama kishore IBM Tools 1 Mon Nov 07, 2016 5:46 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


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