× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Alan,

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.

CPYTOIMPF FROMFILE(MYLIB/MYFILE MYMBR
TOSTMF(/tmp/MYFILE.txt) +
MBROPT(*REPLACE)
RCDDLM(*CRLF) +
DTAFMT(*FIXED)
STRDLM(*NONE) +
STRESCCHR(*NONE)
RMVBLANK(*NONE)

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 ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2024 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.