I'm trying to copy a database file to an IFS file, straight shot, using
CPYTOIMPF, *FIXED format. I've tried all the parameter combinations I
can think of.

All the fields are character, except the first field, and another
several more fields into the record format. I've been reassured in no
uncertain terms that these zoned fields will NEVER be negative. :-)

So it's supposed to look "identical" to the database file.

TOSTMF(/tmp/MYFILE.txt) +

The copy is taking the FIRST field, one of the two zoned fields, and
placing it LEFT-adjusted into the proper number of positions in the IFS
file, with blank fill.

The SECOND field SEEMS to right adjust, although it's one position left
from its buffer location in the database file.


What I REALLY WANT to do is to use a command to make a complete
duplicate of the file to the IFS, as is, as a .TXT file, as if it were
one flat record. Blank-fill is acceptable for the numerics, but
RIGHT-adjusted is expected.



This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].