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 

DFSORT inlcude generic.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
relaxing
Beginner


Joined: 25 Aug 2003
Posts: 73
Topics: 29

PostPosted: Thu Jan 11, 2007 10:22 am    Post subject: DFSORT inlcude generic. Reply with quote

Hello gurus

In the below dataset is it possible to copy all records that contain char COPY. This COPY can occur in any column of record.

Quote:
SORTIN DD *
COPYaslsjjkdlads
asdlkajdCOPYadjlkjdas
asdljalsflfjlkjsf
asdjklCOPYasdlkal


SORTOUT should be

Quote:
COPYaslsjjkdlads
asdlkajdCOPYadjlkjdas
asdjklCOPYasdlkal


I.e it does not include the 3rd row.
Thanks, Relaxing.
Back to top
View user's profile Send private message
dz
Beginner


Joined: 02 Apr 2006
Posts: 26
Topics: 0

PostPosted: Thu Jan 11, 2007 10:57 am    Post subject: Reply with quote

I know it can be done with SYNCSORT via SS function (assuming 80 is the LRECL):

Code:

  INCLUDE COND=(1,80,SS,EQ,C'COPY')   


The max I believe is 256 bytes
Back to top
View user's profile Send private message
relaxing
Beginner


Joined: 25 Aug 2003
Posts: 73
Topics: 29

PostPosted: Thu Jan 11, 2007 11:02 am    Post subject: Reply with quote

Thanks dz. It works for DFSORT !! Very Happy
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Thu Jan 11, 2007 12:21 pm    Post subject: Reply with quote

Actually, DFSORT had the SS function first, and for DFSORT the max length is 32752, not 256.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
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 -> Utilities 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