×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Did you happen to surround it with parenthesis?  You cannot use them when
chaining to a subfile record.  The parenthesis tell the compiler that you
using a key list to do the chain and of course there isn't a key to the
subfile, you can only retrieve by relative record number.

wrong example.

Chain (iX) SubfileRecord;


correct example
Chain iX SubfileRecord;



Michael Schutte
Dig in! Bob Evans New Knife & Fork Sandwiches - This much homestyle
goodness demands a Knife & Fork!




-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-
bounces@xxxxxxxxxxxx] On Behalf Of Knezevic, Mihael
Sent: Wednesday, October 04, 2006 6:54 AM
To: RPG programming on the AS400 / iSeries
Subject: AW: chain on workstation file in free

i tried it again and this time i used the real subfile record number
field and it works. it doesn't work if it is any other field or
variable (which it was in the old non-free program =( ).

thanx

mihael

-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-
bounces@xxxxxxxxxxxx] Im Auftrag von Takken, Cor
Gesendet: Mittwoch, 4. Oktober 2006 13:33
An: RPG programming on the AS400 / iSeries
Betreff: RE: chain on workstation file in free

/free
     chain field subfilerecord;
/end-free

This worked for me anyway, the use of a keylist is not valid (but
you read that in the compile list as well..).

Cor

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Knezevic, Mihael
Sent: woensdag 4 oktober 2006 13:00
To: RPG programming on the AS400 / iSeries
Subject: chain on workstation file in free

hi,

i tried makeing a CHAIN on a workstation file with the
subfile record number in /free but WDSC complains:
RNF7702: Eine Liste mit Schlüsselfeldern ist für eine
programmbeschriebene Datei nicht zulässig.

that would be somthing like: A list of key fields is not
valid for a program described file.

how do i make a chain on a subfile in /free?

thanx in advance

mihael
--
This is the RPG programming on the AS400 / 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.




This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be
copied, disclosed to, retained or used by, any other party. If you
are not an intended recipient then please promptly delete this e-
mail and any attachment and all copies and inform the sender. Thank you.

--
This is the RPG programming on the AS400 / 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.


--
This is the RPG programming on the AS400 / 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.


--
This is the RPG programming on the AS400 / 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-2026 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.