IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Read a value from file and display on terminal


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Oct 17, 2008 11:00 am
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Oct 17, 2008 11:14 am
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Oct 17, 2008 11:27 am
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Oct 17, 2008 12:10 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top