Variable lenght File into Variable lenght with outrec...

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
pepejcl
Member
Posts: 12
Joined: Mon Feb 09, 2009 2:11 pm
Location: Madrid, SPAIN

Variable lenght File into Variable lenght with outrec...

Post by pepejcl » Mon Jun 15, 2009 1:56 pm

Hello everyone,

i have a variable lenght file of 171 record lenght and i want to make a copy into a variable lenght file with the first 88 positions, then 4 spaces, and then the last 79 positions from 93:

Code: Select all

   OUTFIL FNAMES=UNO,VTOV,BUILD=(1,88,4X,93,79)
i know VTOV parameter don't exist !!! jejeee....but is there any similar jcl instruction? or something much more easier?

Thank you very much in advance.
sorry my english!

pepejcl
Member
Posts: 12
Joined: Mon Feb 09, 2009 2:11 pm
Location: Madrid, SPAIN

Post by pepejcl » Mon Jun 15, 2009 5:19 pm

Hello again,

finally i've just discovered the way to do this:

Code: Select all

  OPTION COPY                   
  OUTREC BUILD=(1,4,5,88,4X,97) 
1,4 ----> add 4 to the starting position for the 4-byte RDW (record data word or something like that)

5,88 ----> from position 5 in variable input record puts 88 positions in variable output record

4X ----> leave 4 spaces in variable output record

97 -----> from position 97 until the end of the record input data puts in variable output record


Thank you everyone....

User avatar
Frank Yaeger
Moderator
Posts: 812
Joined: Sat Feb 18, 2006 5:45 am
Location: San Jose, CA
Contact:

Post by Frank Yaeger » Mon Jun 15, 2009 10:48 pm

i know VTOV parameter don't exist
No, because V to V or F to F is the default. You only need a parameter for V to F (VTOF) and F to V (FTOV).
i've just discovered the way to do this
Good.
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort

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