MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

tso command listcat output redirection

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
vmbigot
Beginner


Joined: 17 Jun 2004
Posts: 36
Topics: 14
Location: westminster, california

PostPosted: Mon Oct 30, 2006 7:01 pm    Post subject: tso command listcat output redirection Reply with quote

How do I redirect the output from a LISTCAT ENTRIES (/) ALL command entered in the ISPF 3.4 dataset list panel to a flat file?
_________________
Inside every older man is a young boy asking this question. What the heck happened?!?
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Oct 30, 2006 10:22 pm    Post subject: Reply with quote

Use Rexx program with sysouttrap()... for example: http://sillysot.com/ftp/btso.txt
Back to top
View user's profile Send private message Visit poster's website
vmbigot
Beginner


Joined: 17 Jun 2004
Posts: 36
Topics: 14
Location: westminster, california

PostPosted: Tue Oct 31, 2006 7:39 pm    Post subject: Reply with quote

Semigeezer, that is outstanding! I created a little REXX program to perform an IDCAMS LISTCAT command entered against a file in the ISPF 3.4 dataset list. It was suggested that I put the output into a browse panel to allow scrolling, but I couldn't figure out how to trap the output. Your suggestion and supplied link were the pieces that I was missing.

Thanks!!!
_________________
Inside every older man is a young boy asking this question. What the heck happened?!?
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Oct 31, 2006 10:34 pm    Post subject: Reply with quote

glad to help. In a "production" level application, the ddname generation could be much improved so that people using recursive ISPF screens could still use this, but I only use this occasionally so I never made it fool proof. A better, if not perfect method of getting the ddname would be something like:
Code:
 Do suffix = 0 to 9999 Until rc = 4                               
   Address ispexec "QBASELIB BTSO" || right(suffix,4,"0") " ID(X)"
 End                                                               
 ddname = "BTSO" || right(suffix,4,"0")
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group