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:

[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

We needs the output control cards look as follows:
[email protected]
[email protected]
[email protected]
[email protected]

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([email protected]
[email protected]).

So output look like as follows.
[email protected]
[email protected]
[email protected]
[email protected]

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 *                                               
[email protected]                                               
[email protected]                                               
[email protected]                                               
DHANARAJAN [email protected]                                         
ABILASHA [email protected]                                     
ANANDKUMAR [email protected]                                         
/*                                                           
//DD02     DD *                                               
[email protected]                                               
[email protected]                                             
/*                                                           
//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 All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Search two or more word with FILEAID Compuware & Other Tools 17
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
Search our Forums:


Back to Top