|
Ron, Sorry I hit send button a little too fast. In my example I was combining two files to create a third. The following should work for your example - just change the record length this one uses 235. * Target File: FOutfile O F 235 DISK * Source File 1: FInput IP F 235 DISK D OutData S 235 IInput NS I 1 235 ARcd C EVAL OutData = ARcd C EXCEPT OutFile OOutfile E OutFile O OutData B 235 Hope that helps. Lester -----Original Message----- From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On Behalf Of Klein, Ron Sent: Tuesday, May 21, 2002 9:29 AM To: Rpg400-L (E-mail) Subject: Moving an entire record to another file Hi All, Sorry about the recall. I need some help within one of my programs. I need to write an entire record from one file to another. The layouts of the files are indentical except that the field names are prefixed differently. All that I want to do is to move the record from CADJ(format name) to CADH(format name) and write it out. I tried to externally describe the files in data sturctures, but still get error messages. I am not sure what is is that I have wrong in the D specs. code follows. DFMTJ E DS D CADJ DFMTH E DS D CADH Error Messages follow; *RNF0516 30 2 Name is not allowed since it has already been defined; specification is ignored. *RNF3523 40 2 The external description of the externally-described data structure was not found. TIA Ron _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.