The way to do this is with two read statements...something like...
read R.PO from F.PO, This.PO else R.PO = ''
This.Supplier = R.PO<4>
read R.Supplier from F.Supplier, This.Supplier else R.Supplier = ''
This.Contact.Name = R.Supplier<7>
In other words, forget about using I-Descriptors from within UniBasic.
Even if it is possible, to me, it would be bad practice, inefficient, etc.
The technique given above is akin to... bread and budder.
Regards,
--Bill
Bill Brutzman, Mgr IT
HK MetalCraft Mfg Corp
PO Box 775
35 Industrial Road
Lodi NJ 07644-0775
973.471.7770 x145
973.471.9666
[EMAIL PROTECTED]
www.hkMetalCraft.com
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Bill Stinocher
Sent: Tuesday, March 01, 2005 5:19 PM
To: [EMAIL PROTECTED]
Subject: [U2] Using an I descriptor in a UniBasic program
Hello all. Being new to UniData, I hope that maybe someone can help me.
How do you read an I descriptor in a UniBasic program? The IBM manual
gives me a hint (looking at the CALCULATE command), but the example
given uses a select on the entire file. I am looking for a way to read
the actual data and the I descriptor within a loop without using a
select. I'm familiar with opening, reading, updating, etc. the data
portion of a file, but not the dictionary.
Can anybody point me in the right direction?
Thanks
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
[demime 1.01d removed an attachment of type application/octet-stream which had
a name of Brutzman, Bill.vcf]
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/