Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1894
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: 1894
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: 1806
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Information About the Equifax Securit... Rohit Umarjikar PC Guides & IT News 6 Mon Sep 11, 2017 9:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us