Rahul Karsija wrote:
I need to convert a dataset from RECFM=UA to RECFM=FB. I tried to copy it
using IDCAMS but was unsuccessful. I also wrote a small program to read the
input records and then write them to output file but that did not work
either.
If the input blocks are all multiples of some record size, you
could just use one of the CBT utilities (CDSCB, ZAPDSCB, etc.)
to change the DSCB attributes on DASD. You could also use
IEBGENER, with an explicit override for RECFM=FB, LRECL and
BLKSIZE on the SYSUT1 DD.
If the blocks are not regular, you need to write your own
conversion and padding routine. Easiest would be a program using
BSAM input (gets one block at a time) that allows you to do
anything you want with the input data; then write records with
QSAM or BSAM.
Gerhard Postpischil
Bradford, VT
----------------------------------------------------------------------
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