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

Jcl with fileaid step


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shriya reddy
Warnings : 1

New User


Joined: 05 Jun 2004
Posts: 43

PostPosted: Wed Feb 22, 2006 12:45 pm
Reply with quote

I have one out put file having lenth of 80(FB).now i need records only start with 45 positiom to end with 55 position in another file. Please help me how to do this with FILEAID Step in JCL and provide me steps.

Regards,
Shriya
Back to top
View user's profile Send private message
santsuda

New User


Joined: 01 Dec 2005
Posts: 5

PostPosted: Thu Feb 23, 2006 10:51 am
Reply with quote

Hi Shriya,
Please try this and let me know.
Code:

//STEP0030 EXEC PGM=FILEAID                                   
//DD01     DD DSN=<i/p dsn>,DISP=SHR               
//DD01O    DD DSN=<o/p dsn>,       
//          DISP=(NEW,CATLG,DELETE),                           
//          UNIT=SYSDA,                                       
//          SPACE=(CYL,(20,30),RLSE),                         
//          DCB=<dcb param>             
//SYSOUT   DD SYSOUT=*                                         
//SYSUDUMP DD SYSOUT=*                                         
//SYSPRINT DD SYSOUT=*                                         
//SYSIN    DD *                                               
$$DD01 USER MOVE=(1,11,45),                                   
            WRITE=DD01O     
/*
                                 


From the Position 45 , 11 Charecters of I/P file will be moved to field position 1 of o/p file.

Hope this helps.

Thanks,
Santhosh.S
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
Search our Forums:

Back to Top