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

Regarding fetching all the data from ISPF table


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amitava
Warnings : 1

Active User


Joined: 30 Oct 2005
Posts: 186
Location: India

PostPosted: Thu Mar 23, 2006 4:11 pm
Reply with quote

Hi All,
I am thinking of retrieving all the data I have stored in an ISPF table. For that I used TBSCAN and TBGET also. But I am nt getting any row. Look I want to retrieve all the data from that ISPF table.
I am attaching the sample statement I used for TBSCAN or TBGET. Please help me to say how to retrieve all the data from the ISPF table.

TBSCAN :- "tbscan" flxref "arglist(flxref)"
TBGET :- "tbget" flxref

Where flxref is the table-name.
Please help me....

Regards
Amitava
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Mar 23, 2006 6:52 pm
Reply with quote

I would do this:

Code:

Pseudo-code

TBOPEN flxref NOWRITE SHARE
TBTOP flxref
Do Until return-code is not equal to zero
    TBSKIP flxref NUMBER(+1) POSITION(tbcrp)
    TBGET flxref POSITION(tbcrp)
    Set the return-code value to the success of the TBGET
    VGET the row variables and process as needed
End the loop
TBCLOSE flxref
Back to top
View user's profile Send private message
amitava
Warnings : 1

Active User


Joined: 30 Oct 2005
Posts: 186
Location: India

PostPosted: Fri Mar 24, 2006 9:31 am
Reply with quote

Thanx a lot superk..... You dnt know how much u have helped me.
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 How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Store the data for fixed length COBOL Programming 1
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 Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
Search our Forums:

Back to Top