Copy of Fixed Length file into Variable Length File

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
whatistheanswer
Member
Posts: 11
Joined: Fri Mar 27, 2009 9:51 am

Copy of Fixed Length file into Variable Length File

Post by whatistheanswer » Wed Apr 01, 2009 9:02 am

How to copy a Fixed Length file into a variable length file and vice versa (using JCL)?


Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Apr 01, 2009 10:12 am

Hi again,

You can also use other IBM utility as IEBGENER to do the same.

Code: Select all

//STEP010I EXEC PGM=IEBGENER                            
//SYSPRINT DD SYSOUT=*                                  
//SYSIN    DD *                                          
 GENERATE MAXFLDS=1                                      
 RECORD FIELD=(350,1,,1)                                
//SYSUT1   DD DISP=SHR,DSN=VBinput 
//SYSUT2   DD DISP=(,CATLG),UNIT=SYSDA,SPACE=(CYL,(1,1),RLSE), 
//            DCB=(RECFM=FB,LRECL=350,BLKSIZE=3500), 
//            DSN=FBoutput 
For more detail about this utility see this link:
http://publibz.boulder.ibm.com/cgi-bin/ ... /CCONTENTS
Regards,
Anuj

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Apr 01, 2009 10:15 am

Hi,

If you are a DFSORT user, See the "VB to FB conversion" and "FB to VB conversion" Smart DFSORT Tricks at: http://www.ibm.com/servers/storage/supp ... vs/tricks/ (Thankyou Frank)
Regards,
Anuj

whatistheanswer
Member
Posts: 11
Joined: Fri Mar 27, 2009 9:51 am

Post by whatistheanswer » Thu Apr 02, 2009 8:25 am

Thank you very much Anuj :)

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Thu Apr 02, 2009 12:07 pm

You're welcome . . . :)

Have a good one,

Ad

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others