• Subject: External file reads into DS's
  • From: John Carr <74711.77@xxxxxxxxxxxxxx>
  • Date: Thu, 8 Jul 1999 18:26:50 -0400


>

>> But, OH YES!  And while you're at it, could we read a record into a data

>> structure and have the data map to a subset of record's field collection

>> (i.e. record=> field1-field4; data structure=>field1,field3).
>> Buzz    "Lowly RPG III User"


Ok you got me to ask this,   which is off your request Buzz.    (But I
don't think Hans can help us)

Speaking of reading into a D/S with a subset of fields; .........

I want to have a D/S   with (say)  5 fields from the file,   and then do a
SQL  FETCH 
and have the FETCH be smart enough to map FIELD NAME TO FIELD NAME !!!!  
(from file fields  to D/S  fields with same name)
Is that so freaking hard ?????

I just want to do a fetch into a host D/S without having to specify each
field on the fetch verb.  
Oh Well,    Maybe we will get some MULTI-PASS compiler improvements.

John Carr
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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].