Is there any reason not to use CPYTOSTMF? It's the method I would use.
Sharon
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Cassidy, Alan
Sent: Wednesday, September 17, 2008 10:46 AM
To: Midrange Systems Technical Discussion
Subject: CPYTOIMPF left-adjusting, blank fill, for zoned first field,but
not the other zoned field
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.
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.
???????
--Alan
As an Amazon Associate we earn from qualifying purchases.
This thread ...
RE: Interop.cwbx and keyed data queue example, (continued)
This mailing list archive is Copyright 1997-2025 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.