Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Find a string in a dataset and eliminate those records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
sameer

New User


Joined: 10 Mar 2005
Posts: 41
Location: United States Of America

PostPosted: Fri Jan 25, 2008 2:50 pm    Post subject: Find a string in a dataset and eliminate those records
Reply with quote

Hi,

I have a dataset from which I want to eliminate records having string "STRING". This string might be located in any position of a record.

Ex :

AAAASTRINGAAAAA
BBBBBBSTRINGBBB
STRINGCCCCCCCC

The output file should not have any records which has string "STRING"

I hope ICETOOL can do this. Any one have idea?

Regards,
Back to top
View user's profile Send private message

acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Fri Jan 25, 2008 2:56 pm    Post subject:
Reply with quote

search for SS (STRING SEARCH).

1,80,SS,NE,C'STRING'...
Back to top
View user's profile Send private message
sameer

New User


Joined: 10 Mar 2005
Posts: 41
Location: United States Of America

PostPosted: Fri Jan 25, 2008 3:00 pm    Post subject: Reply to: Find a string in a dataset and eliminate those rec
Reply with quote

Thanks for immediate reply. Which Utility I need to for this command??

Regards,
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Fri Jan 25, 2008 3:00 pm    Post subject: Reply to: Find a string in a dataset and eliminate those rec
Reply with quote

sameer,


Use the OMIT COND/SS substring search combination for your requirement. Search the DFSORT forum fro examples.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Fri Jan 25, 2008 3:01 pm    Post subject: Reply to: Find a string in a dataset and eliminate those rec
Reply with quote

sameer,

Quote:
Which Utility I need to for this command??


SORT. Search the DFSORT forum.
Back to top
View user's profile Send private message
sameer

New User


Joined: 10 Mar 2005
Posts: 41
Location: United States Of America

PostPosted: Fri Jan 25, 2008 3:02 pm    Post subject:
Reply with quote

Thank you
Back to top
View user's profile Send private message
sameer

New User


Joined: 10 Mar 2005
Posts: 41
Location: United States Of America

PostPosted: Fri Jan 25, 2008 5:23 pm    Post subject:
Reply with quote

Thanks Acevedo & Aaru it worked.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Fri Jan 25, 2008 7:12 pm    Post subject: Re: Reply to: Find a string in a dataset and eliminate those
Reply with quote

Aaru wrote:
sameer,

Quote:
Which Utility I need to for this command??


SORT. Search the DFSORT forum.



or Syncsort.
Back to top
View user's profile Send private message
sameer

New User


Joined: 10 Mar 2005
Posts: 41
Location: United States Of America

PostPosted: Fri Jan 25, 2008 7:15 pm    Post subject:
Reply with quote

Yes Acevedo, I got this information from DFSORT forum.

Once again thanks for the information.
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

PostPosted: Fri Jan 25, 2008 7:16 pm    Post subject: Reply to: Find a string in a dataset and eliminate those rec
Reply with quote

The following sort card would eliminate all the records containing the sting 'STRING' anywhere in the 1 to 80 cloumn record :

Code:

//SYSIN DD *
  OPTION COPY
  OMIT COND=(1,80,SS,EQ,C'STRING')
/*


the program is SORT .

-Ajay
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us