View previous topic :: View next topic
|
Author |
Message |
ParagChouguley
Active User
Joined: 03 Feb 2007 Posts: 175 Location: PUNE(INDIA)
|
|
|
|
I want to read a value from file and display on terminal using JCL ?
The file is FB flat file. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
ParagChouguley
Active User
Joined: 03 Feb 2007 Posts: 175 Location: PUNE(INDIA)
|
|
|
|
Hi Dick,
Thanks for quick reply !
I want to disply it on TSO/ISPF terminal ! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Well you can't use a batch job as the TSO session and the batch job are completely different address spaces. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome
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 |
|
|
ParagChouguley
Active User
Joined: 03 Feb 2007 Posts: 175 Location: PUNE(INDIA)
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
|