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
 

 

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 Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 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 Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm
No new posts FileAid to compare(logical operations... anand1204 Compuware & Other Tools 3 Wed Apr 06, 2016 2:55 am


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