Ken Leidner on IBM Mainframe Discussion List <[email protected]> wrote
on 06/22/2011 01:43:26 PM:
> I want to take a numbered FB 80 dataset (member) and convert it to a
> VB 255 format dataset, each line will really be 80 bytes long.
>
> I know how to reformat the line numbers 73-80 to the start of each
> line, and I can add the RDW (54 00 hex) before that, but what must I
> do to get the VB part?  Will sort still think the output dataset is FB?
>
> Is there a keyword I need to use, much like when going from VB to FB?
>
> I don't have a place to run this right now, hence the question.

Ken,

If you want to take FB/80 records that look like this:

<72 bytes of data>nnnnnnnn

and convert them to VB/255 records that look like this:

rrrrnnnnnnnn<72 bytes of data>

where rrrr is the RDW containing X'5400', you would use a DFSORT
job like this:

//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=...  input file (FB/80)
//SORTOUT DD LRECL=255,DSN=...  output file (VB/255)
//SYSIN DD *
  OPTION COPY
  OUTFIL FTOV,BUILD=(73,8,1,72)
/*

If that's not what you want to do, then please explain in more detail
what you want to do.

Frank Yaeger - DFSORT Development Team (IBM) - [email protected]
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration

 => DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to