Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Filtering and writting in Fileaid

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
View previous topic :: :: View next topic  
Author Message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 237

PostPosted: Thu Feb 14, 2008 8:57 pm    Post subject: Filtering and writting in Fileaid
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: 1703
Location: Australia

PostPosted: Fri Feb 15, 2008 5:52 am    Post subject: Reply to: Filtering and writting in Fileaid
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    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Using Field names in FILEAID Batch CO... Atul Banke Compuware & Other Tools 2 Wed Jun 29, 2016 9:54 pm
No new posts FileAid to compare(logical operations... anand1204 Compuware & Other Tools 3 Wed Apr 06, 2016 2:55 am
No new posts fileaid CHANGED parameter boyti ko Compuware & Other Tools 3 Fri Dec 19, 2014 1:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us