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

INCLUDE condition questions


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
van bui

New User


Joined: 23 Mar 2016
Posts: 1
Location: australia

PostPosted: Thu Jun 30, 2016 9:52 am
Reply with quote

I have a fix length sequential file, some record contains double quotes " char.
The double quotes char are random placed on those records. I would like split those records to new file (SORTOF01).
Would you please advice how can I use INCLUDE parm for scan double quotes chars or please advice any options help me split those double quotes chars to other dataset. Thanks


SORT FIELDS=COPY
OUFIL FILES=01,INCLUDE=?????
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


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

PostPosted: Thu Jun 30, 2016 10:20 am
Reply with quote

If you want to "splut" the file, yout'll need two OUTFILs.

On one, you use INCLUDE=/OMIT= with an SS comparison, in a "field" which describes all the possible locations of '"'.

On the other OUTFIL you use SAVE, so that it gets all the records which haven't been otherwise written within an OUTFIL.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Extract 2 more lines below line that ... DFSORT/ICETOOL 2
No new posts Build two or more rows given some con... DFSORT/ICETOOL 9
This topic is locked: you cannot edit posts or make replies. include and copy COBOL Programming 4
No new posts include cond ascii constant DFSORT/ICETOOL 4
No new posts REMOVE DUPLICATE RECORDS BASED ON A S... DFSORT/ICETOOL 4
Search our Forums:

Back to Top