|
Imagine a table called CUSTOMER.
It has some columns like these:
NAME 50A
ADDRESS 50A
EMAIL 128A ALWNULL
Let's say that I want to use this table in some SQL. I need some RPG
infrastructure to make that happen. The details vary by OS release, but
something like:
dcl-ds address
name char(50)
address char(50)
email char(128)
end-ds
dcl-ds address_null
name_null int(5)
address_null int(5)
email_null int(5)
end-ds
declare names cursor for
select name, address, email
from someTable
fetch next from names into
:address :address_null
Utopia would be an RDi wizard that takes a file name and deals with it.
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.