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

reading sequential file...using tso command


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Surya Kira nPasumarthi

New User


Joined: 21 Nov 2007
Posts: 19
Location: hyderabad

PostPosted: Wed May 14, 2008 11:07 am
Reply with quote

hi,, i want to develop code to read a sequentail file and display data based on some tso command...

for example...my PS look like

e0010 - pfmr2000, pfmr3000
e0020 - pfmr1020, pfmr2020

when i give a tso command..

tso error e0010

its shud....throw me

pfmr2000
pfmr3000

please let me know, if it is possible using rexx and moreover... command to read a sequentail file...
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 14, 2008 11:39 am
Reply with quote

Is your REXX / CLIST library concatenated into SYSEXEC and/or SYSPROC ?

And, my phsychic powers are always low on Wednesday, so please post your code too.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed May 14, 2008 9:42 pm
Reply with quote

To read a file, use ALLOC and EXECIO:

Code:
 
Address TSO                                     
"ALLOC F(INFILE) DSN('my.seq.dsn') SHR REU"   
"EXECIO * DISKR INFILE ( FINIS STEM LINES."
"FREE F(INFILE)"                             


In the example, a stem variable, lines., will contain the records.

Put your program in SYSPROC or SYSEXEC concatenation.
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 -> CLIST & REXX

 


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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top