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

Filtering and writting in Fileaid


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Thu Feb 14, 2008 8:57 pm
Reply with quote

Hi,

I have an input file as mentioned below,

aaaa
bbbb
cccc
dddd
eeee
ffff
gggg

i need an output as mentioned below
cccc
dddd
eeee
the requirement is to find c'cccc' and write next 2 records. it is not like copy if=(1,eq,c'cccc'),and=(1,eq,c'dddd'),and=(1,eq,c'eeee').

Please send the control card for the above requirement.

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

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Feb 15, 2008 5:52 am
Reply with quote

Hi Murali,
hereunder is an example that should work

Code:
//FILEAID1 EXEC PGM=FILEAID                   
//SYSPRINT DD SYSOUT=*                         
//DD01     DD *                               
AAAA                                           
BBBB                                           
CCCC                                           
DDDD                                           
EEEE                                           
FFFF                                           
GGGG                                           
//DD01O    DD SYSOUT=*                         
//SYSIN    DD *                               
$$DD01 SPACE STOP=(01,EQ,C"CCCC")             
$$DD01 COPY OUT=3                             



Gerry
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 -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts REXX SDSF filtering CLIST & REXX 8
No new posts Fileaid 2 commands instream work. In ... Compuware & Other Tools 2
No new posts Fileaid Update Replace with null string Compuware & Other Tools 4
Search our Forums:

Back to Top