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

Find a STRING in a file of records which can be in any pos


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

New User


Joined: 17 Jun 2014
Posts: 13
Location: india

PostPosted: Mon Sep 22, 2014 8:14 pm
Reply with quote

Hi,

I'm trying to remove certain group of records which has got the word "TEST" in it. The file is of 80 byte fixed length. My requirement is to remove all records those have the word "TEST" along with them.

I searched through the forum and found FINDREP, but could not find the PARM / VERB that does SEARCH / FIND function. Can someone please provide directions.

INPUT
Code:
ABCDTESTFGH
ABCDEFGHIJK
ABTESTCDEFG
TESTABCDEFG
ABCDEFGHIJK


Expected OUTPUT
Code:
ABCDEFGHIJK
ABCDEFGHIJK


Thank you.
Rajesh.
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: Mon Sep 22, 2014 8:23 pm
Reply with quote

You need to look up what the field-type SS can do for you.

Code:
 OPTION COPY
 OMIT COND=(1,80,SS,EQ,C'TEST')


Edit: Missed the EQ :-)
Back to top
View user's profile Send private message
thirumalasetty

New User


Joined: 17 Jun 2014
Posts: 13
Location: india

PostPosted: Mon Sep 22, 2014 9:05 pm
Reply with quote

Appreciate the quick response Bill. I got the data successfully with the below card; Thank you very much.

Code:
  OPTION COPY                               
  OMIT COND=(1,80,SS,EQ,C'TEST')   
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top