|
CPYF has no support? Please see my next response - I don't
understand!!
CRPence on Wednesday, April 04, 2012 6:15 PM
On 04-Apr-2012 14:51 , Stone, Joel wrote:
I'm trying to write a CL routine to promote a file with fields
renamed AND several fields added into the middle of the record
format.
I am looking for an example data conversion program. If you have
one you could share to get me started, that would be great!
1) CPYF *nochk to copy the data 2) CPYF *map to move the data
into the proper fields
<<SNIP>>
Irrespective of CMS, the CPYF has no support to effect [well], the
described changes; i.e. not without either significant data loss
or using multiple passes of DDL and data-copy activity. <<SNIP>>
re: [Charles Wilt on Thursday, April 05, 2012 8:37 AM wrote:]
"CL is a poor choice for your needs..."
Why is a very simple CL with CPYF a poor choice? It will do the
job WITHOUT naming fields, and could be used on ANY file conversion
- as opposed to SQL, which would need specific fields named and is
NOT reusable for other files??
Step1:
To copy data with ONLY field name changes (no new fields, no field
length changes: CPYF FMTOPT(*NOCHK) from SOURCELIB to QTEMP version
of file with field name changes
Step2:
CPYF FMTOPT(*MAP *DROP) from QTEMP to TARGETLIB version of file with
field name changes AND new fields inserted.
Please explain why this simple, reusable method would be a poor
choice??
As an Amazon Associate we earn from qualifying purchases.
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.