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



The system should say which line is in error. Everyone is stuck on moving data. You can write blank data to a file. The error seems like is should be on this line:
Write poDtl.rPoDtl toDs;

I don't use the data structure for writing to a file, so I don't know if this is correct or not.
I would use
Write rPoDtl;

assuming that is the record format.

Please tell us which line the error is associated with.

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Garrison
Sent: Friday, February 20, 2015 2:12 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: RNF7701 Error on a DS Write

A data structure defined with LIKEREC is a QUALIFIED data structure. The names of the subfields will be qualified with the new data structure name, DS1.SUBF1.

You will need to map (move) the fields from tDs to the fields in toDs.
The EVAL-CORR is a convenient opcode for doing so if you are on a newer release or if the data structures are identical you may then move tDS to toDs before the write.

On 2/20/2015 7:57 AM, RPG List wrote:
I am baffled by this error, aside from not telling me much of anything
I have not been able to figure out how to get around it.

I have two files (one is a temp file in qtemp and the other a
permanent
table)

FtpoDtl1 if a e Disk Qualified

FpoDtl if a e Disk Qualified

DS's declared:

D tDs ds LikeRec(tpoDtl1.rPoDtl:*Input)
D toDs ds LikeRec(tpoDtl1.rPoDtl:*Output)

Now I'm reading the qtemp file into the DS:
Read tPoDtl1 tDs;

Write it out to the permanent file:
Write poDtl.rPoDtl toDs;

That's all there is to this particular problem.

Any help would be appreciated, even if its with the end of a Thompson




--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
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 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.