× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



When one codes RPG it is not necessary to use some tool to convert DDS
into RPG.
RPG supports "externally defined data" and will bring the specs into RPG.
It doesn't matter if the file was defined with SQL or DDS. The problem
is, too many people call the external definition DDS so they say "it will
bring the DDS" or some stupid thing.

Here is a sample you can try:
CREATE TABLE ROB.JUSTIN
(MYCHAR CHAR (10 ) NOT NULL WITH DEFAULT,
MYDEC DEC (5 , 0) NOT NULL WITH DEFAULT)

Then code this RPG. (I think this is all valid V5R4 stuff...)

DJustinDS E DS extname(JUSTIN) QUALIFIED
C/free
JustinDS.Mychar='test';
*inlr=*on;
return;
/end-free

Look at the compiler listing
DJustinDS E DS extname(JUSTIN) QUALIFIED
C/free
*--------------------------------------------------
* Data structure . . . . . . : JUSTINDS
* External format . . . . . : JUSTIN : ROB/JUSTIN
*--------------------------------------------------
D MYCHAR 10A
D MYDEC 5P 0
JustinDS.Mychar='test';
*inlr=*on;
return;
/end-free
* * * * * E N D O F S O U R C E * * * * *

...
Global Field References:
Field Attributes References (D=Defined M=Modified)
*INLR N(1) 6M
JUSTINDS DS(13) 1D 5M
MYCHAR A(10) 3D 5
MYDEC P(5,0) 4D
...

Rob Berendt

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-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.