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

Substring be scanned via syncsort


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jammy_27

New User


Joined: 06 Aug 2009
Posts: 17
Location: USA

PostPosted: Thu Sep 24, 2015 8:50 pm
Reply with quote

Can a range of substring be scanned via syncsort on every record?

My requirement is as below :-

I have a variable block input file
VB, LRECL = 25889
I am looking for texts anywhere from V200 thru V300 on every record in that file

I Could write the sort for one text - example V208 and it works fine. I used the PARM='VLTESTI=2'
SORT FIELDS=COPY
INCLUDE COND=(5,25885,SS,EQ,C'V208')


But the records can have multiple occurrences for any number between V200 to V300. If any of these texts appear , that record should be included.
I tried using the below but it doesnt work. let me know if i am missing anything.

SORT FIELDS=COPY
INCLUDE COND=(5,25885,SS,GE,C'V200',AND,
5,25885,SS,LE,C'V300')


SORT FIELDS=COPY
INCLUDE COND=(5,25885,SS,GE,C'V200',AND,
*
5,25885,SS,LE,C'V299')
WER813I INSTALLATION OPTIONS IN MFX LOAD LIBRARY WILL BE USED
WER251A INCLUDE/OMIT INVALID COND
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Sep 24, 2015 10:02 pm
Reply with quote

You need to look up the syntax of the INCLUDE where it relates to SS and discover exactly what to do in exactly that circumstance.
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 -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts I need a 4 lines block where substrin... DFSORT/ICETOOL 12
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
Search our Forums:

Back to Top