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

How to find the particular word?


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
manojkumar.sesuraj

New User


Joined: 15 Apr 2009
Posts: 43
Location: Mumbai

PostPosted: Mon Sep 21, 2009 9:20 am
Reply with quote

Hi,
I have a dataset of LRECL 80. I want to remove records, if the positions from 10 to 40 has contained value '123'. For example,
Input file:
-----------
abcdefghijklmnop123
abcdefghijsnop123
abcdefghijkp123
zzzzzzzzzzdfafsdfasdf
abcdefghidghjklmnop123
abcdefghijklmsdfsdfhhnop123
abcdefghijklmnop

Output file:
-------------
zzzzzzzzzzdfafsdfasdf
abcdefghijklmnop

Is there any looping conditions in DFSORT will help on this?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Sep 21, 2009 11:20 am
Reply with quote

Hi Manoj,

I'm not sure I understand what you mean by "any looping condition" but here is something that might assist
Code:
//STEP0001 EXEC PGM=SORT                       
//SYSOUT   DD SYSOUT=*                         
//SORTIN   DD *                               
ABCDEFGHIJKLMNOP123                           
ABCDEFGHIJSNOP123                             
ABCDEFGHIJKP123                               
ZZZZZZZZZZDFAFSDFASDF                         
ABCDEFGHIDGHJKLMNOP123                         
ABCDEFGHIJKLMSDFSDFHHNOP123                   
ABCDEFGHIJKLMNOP                               
/*                                             
//SORTOUT  DD SYSOUT=*                         
//SYSIN    DD *                               
  OPTION COPY                                 
  OMIT COND=(10,31,SS,EQ,C'123')               


Gerry
Back to top
View user's profile Send private message
manojkumar.sesuraj

New User


Joined: 15 Apr 2009
Posts: 43
Location: Mumbai

PostPosted: Mon Sep 21, 2009 11:37 am
Reply with quote

Thanks Gerry... It works... icon_smile.gif
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 PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts replace word 'MONTH' with current mon... SYNCSORT 11
Search our Forums:

Back to Top