Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Jcl with fileaid step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Jcl with fileaid step
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us