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
 

 

Read a value from file and display on terminal

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 175
Location: PUNE(INDIA)

PostPosted: Fri Oct 17, 2008 10:44 am    Post subject: Read a value from file and display on terminal
Reply with quote

I want to read a value from file and display on terminal using JCL ?
The file is FB flat file.
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: Fri Oct 17, 2008 11:00 am    Post subject:
Reply with quote

Hello,

What kind of terminal do you have an nterface to from jcl?

What you want to do needs to be better defined.

Please post what type of terminal (cics, tso/ispf, other) and any other details that will help us help you.
Back to top
View user's profile Send private message
ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 175
Location: PUNE(INDIA)

PostPosted: Fri Oct 17, 2008 11:10 am    Post subject:
Reply with quote

Hi Dick,
Thanks for quick reply !
I want to disply it on TSO/ISPF terminal !
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Oct 17, 2008 11:14 am    Post subject:
Reply with quote

Well you can't use a batch job as the TSO session and the batch job are completely different address spaces.
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: Fri Oct 17, 2008 11:27 am    Post subject:
Reply with quote

You're welcome icon_smile.gif

Quote:
I want to disply it on TSO/ISPF terminal !
If you take the jcl out of the requirement, you can find several examples of REXX reading a flat file and showing it on the terminal by using the forum SEARCH.
Back to top
View user's profile Send private message
ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 175
Location: PUNE(INDIA)

PostPosted: Fri Oct 17, 2008 11:54 am    Post subject:
Reply with quote

OK..........seems I have to tell my original requirement ! :-)
I want to develop a REXX program and use as a TSO comamnd. This will serve a purpose of counting no of records in a VSAM file. Now I tried to write it in a pure REXX. It noticed 2 disadvantages.
1) Terminal remians hanged till the entire file is read. This is a problem for big files.
2) For big files I got error saying no space for read data.
To avoid this I turned to JCL thru rexx option.

Now,
a) Is there any function in REXX that will give record count without rading or saving read records ?
b) any other option in REXX to solve space problem and which will work fast ( as terminal remains hanged ) ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Oct 17, 2008 12:10 pm    Post subject:
Reply with quote

1) LISTCAT will give a record count - but only valid from the last time that the cluster was sucessfully closed.

2) SORT is fast and can be run from the terminal
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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