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

Fileaid JCL require


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prangya
Currently Banned

New User


Joined: 12 Jul 2008
Posts: 7
Location: pune

PostPosted: Mon Aug 04, 2008 3:19 pm
Reply with quote

Hi,

Our requirement details are following.

The control card looks like as belows:

FV1111@YYY.COM
NH1111@YYY.COM
SA1111@YYY.COM
DHANARAJAN_R@XXX.COM
ABILASHA_KRISHNAN@XXX.COM
ANANDKUMAR_S@XXX.COM

We needs the output control cards look as follows:
KN1111@YYY.COM
CJ1111@YYY.COM
DB1111@YYY.COM
AA-BBB-CC@ZZZ.COM

Rules: 'FV' will be replaced by 'KN'
'SA' will be replaced by 'CJ'

So 2nd,4th,5th & 6th lines of input file needs to be removed & the extra two mail ids needs to be added(DB1111@YYY.COM
AA-BBB-CC@ZZZ.COM).

So output look like as follows.
KN1111@YYY.COM
CJ1111@YYY.COM
DB1111@YYY.COM
AA-BBB-CC@ZZZ.COM

Needs a file aid JCL

Thanks
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Aug 04, 2008 4:10 pm
Reply with quote

Hi,

try this
Code:
//FILEAID  EXEC PGM=FILEAID                                   
//SYSPRINT DD SYSOUT=*                                       
//DD01     DD *                                               
FV1111@YYY.COM                                               
NH1111@YYY.COM                                               
SA1111@YYY.COM                                               
DHANARAJAN R@XXX.COM                                         
ABILASHA KRISHAN.@XXX.COM                                     
ANANDKUMAR S@XXX.COM                                         
/*                                                           
//DD02     DD *                                               
DB1111@YYY.COM                                               
AA-BBB-CC@ZZZ.COM                                             
/*                                                           
//OUTFILE  DD SYSOUT=*                                       
//SYSIN    DD *                                               
$$DD01 USER OUT=0,PADCHAR=C' ',                               
            IF=(001,EQ,C"FV"),REPL=(001,C'KN'),               
          ORIF=(001,EQ,C"SA"),REPL=(001,C'CJ'),               
            WRITE=OUTFILE                                     
$$DD02 USER OUT=0,PADCHAR=C' ',                               
            WRITE=OUTFILE                                     
/*                                                           



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 Fileaid 2 commands instream work. In ... Compuware & Other Tools 2
No new posts Fileaid Update Replace with null string Compuware & Other Tools 4
No new posts Require help in DB2 Query DB2 3
Search our Forums:

Back to Top