|
Tim, You idea seems to be somewhat near to want i want, but let's say i know that position 1 5 has a packed field , after substringing between these positions how do i convert it to decimal or zoned . ______________________________ Reply Separator _________________________________ Subject: RE: Re[2]: Field value Author: "Hatzenbeler; Tim" <thatzenbeler@clinitech.net> at ARO-INTERNET Date: 4/13/00 12:40 PM You might be able to create a procedure that can do this, if you can access an API that will list the fields in a file and the start & end locations for the fields, you might be able to retrieve the values you want by referencing the record as a flat file, and pulling the data within the record by using start & end values as offsets. a side note: I have seen a similar concept used before to create the x,y coordinates for fields on the display to avoid using indicators for cursor positioning. just an idea, tim > -----Original Message----- > From: Vini.Kolathur@msasaro.com [SMTP:Vini.Kolathur@msasaro.com] > Sent: Thursday, April 13, 2000 2:28 PM > To: RPG400-L@midrange.com; Lewis Libman > Subject: Re[2]: Field value > > Lewis, > What i want is something like this , > > > C eval fld=%fieldvalue(X) > > X=STATUS ; STATUS is the name of another field in the > program/database .. . > > The above hypothetical BIF should be assigning the value stored in > the field STATUS to fld. > > > ______________________________ Reply Separator > _________________________________ > Subject: Re: Field value > Author: "Lewis Libman" <LLibman@behr.com> at ARO-INTERNET > Date: 4/13/00 12:40 PM > > > If you are saying: > C If Status = 'STATUS' > C whatever > C Endif > > Whynot??????????????? > > Lewis Libman > llibman@behr.com > 714 545 7101 x2118 > > >>> Vini Kolathur <Vini.Kolathur@msasaro.com> Thursday, April 13, 2000 > 10:09:06 > AM >>> > Hi , > Just wanted to make sure if this is possible in RPG/400 or ILE. > Can > i treat the value of a field as a field and do a comparison > operation. > > For eg: Field X= "STATUS" , this STATUS is the name of field using > this can i access the value of the field STATUS. > I guess i am clear in my question . > > > Can somebody help me with it. > > > Thank you, > Vini > +--- > | This is the RPG/400 Mailing List! > | To submit a new message, send your mail to RPG400-L@midrange.com. > | To subscribe to this list send email to RPG400-L-SUB@midrange.com. > | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: > david@midrange.com > +--- > > > > > > > > > > > > > ! > > > > > > > > > > > > > ! > > +--- > | This is the RPG/400 Mailing List! > | To submit a new message, send your mail to RPG400-L@midrange.com. > | To subscribe to this list send email to RPG400-L-SUB@midrange.com. > | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: > david@midrange.com > +--- > +--- > | This is the RPG/400 Mailing List! > | To submit a new message, send your mail to RPG400-L@midrange.com. > | To subscribe to this list send email to RPG400-L-SUB@midrange.com. > | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: > david@midrange.com > +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.