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 

Filtering records for viewing in a PS File

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


Joined: 11 Nov 2005
Posts: 6
Topics: 4

PostPosted: Tue Nov 22, 2005 7:11 am    Post subject: Filtering records for viewing in a PS File Reply with quote

In a PS File where there are 8077 records i need to select the records whose 7th column fields starts with the letter 'S'. i need to view them after filtering it out.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Tue Nov 22, 2005 7:32 am    Post subject: Reply with quote

venu,


If you are planning to use a TSO command , then the following command will get all the records which has an 'S' at col 7.

Code:

X ALL; F 'S' 7 ALL


You can use the following step to extract the desired records in batch.
Code:

//STEP0100 EXEC PGM=SORT                   
//SYSOUT   DD SYSOUT=*                     
//SORTIN   DD DSN=YOUR INPUT FILE,
//            DISP=SHR                     
//SORTOUT  DD DSN=YOUR FILTERED RECORDS FILE,
//            DISP=(NEW,CATLG,DELETE),
//            UNIT=SYSDA,
//            SPACE=(CYL,(X,Y),RLSE)
//SYSIN    DD *                             
  SORT FIELDS=COPY                           
  INCLUDE COND=(7,1,CH,EQ,C'S')
/*                             


Hope this helps..

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail 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