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



I tried that once and it didn't seem to make any difference. I'll try it
again, maybe I had something else wrong at the time.


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

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.