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

ISPF table


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kansassho

New User


Joined: 31 Mar 2008
Posts: 14
Location: kansas city

PostPosted: Thu Nov 12, 2009 3:19 pm
Reply with quote

I want first to get selected records(matching a specified value for a column in the table) from an ISPF table and then write these record to a sequential file.
Please help me how to proceed.

Can someone please provide me some examples.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Nov 12, 2009 3:31 pm
Reply with quote

Take a look at TBSCAN and TBSORT

Documents easily reached from the reference material sticky in the CLIST/REXX forum.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu Nov 12, 2009 4:31 pm
Reply with quote

Another fun way is to use a skeleton:

The skeleton could be:
Code:
)DOT tbname SCAN(FLDM3,EQ)
&FLDM3 &FLDM1 &FLDM2
)ENDDOT


And the REXX would be:
Code:
Address TSO "ALLOC FI(ISPFILE) DA('my.dsn') SHR"
FLDM3 = 'XX'
"FTOPEN"   
"FTINCL skelname"
"FTCLOSE"


The line "&FLDM3 &FLDM1 &FLDM2" can be formatted in many ways too.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Looking for a little history of ISPF ... TSO/ISPF 5
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top