|
I've got a situation where I'm trying to create a procedure with adisplay
file. It is an SQLRPGLE program that doesn't see the fields in my dds
file. I've boiled the code down to a very simple example, the DDSdoesn't
change, just the RPG.
DDS:
DSPSIZ(24 80 *DS3)
PRINT(*LIBL/QSYSPRT)
INDARA
R RECORD1
A CA03(03 'F3=EXIT')
A
A FIELD1 L O 6 10
A FIELD2 L O 7 10
A FIELD3 L O 8 10
Here is the SQLRPGLE. If you compile it as it (with the certain lines
commented out) then it compiles just fine. But if you uncomment thelines
that make it a *NOMAIN procedure it will no longer recognize Field1,use of the individual or entity to which it is addressed and may contain
Field2, and Field3 from the DDS.
SQLRPGLE:
h*nomain
FTESTDF CF E WORKSTN infds(wsds)
F USROPN
D WSDS DS
D ALLIND 1A Overlay(wsds:369)
D
D* TEST PR
D
P* TEST B EXPORT
D
D* TEST PI
D
D IndPtr s * Inz(%Addr(*In))
D IndDS DS Based(IndPtr)
D fkeys 99a
D EXIT N Overlay(fkeys:3)
D
D
d fieldDS DS
d field1
d field2
d field3
d myfield D Dim(3) Overlay(fieldDS:1)
d
/free
*inlr = *on;
OPEN TESTDF;
DOW NOT EXIT;
EXFMT RECORD1;
IF EXIT;
LEAVE;
ENDIF;
ENDDO;
close testdf;
/end-free
P* TEST E
Any help will be greatly appreciated.
Thanks
Bryce Martin
Programmer/Analyst I
Ext. 4777
--- This message (including any attachments) is intended only for the
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.