Hi Greg
You don't show it - but are you doing an OUT of the data area (or whatever the free form version of OUT is)?
Alan Shore
Solutions Architect
IT Supply Chain Execution
[cid:image001.png@01D7C59C.D2CE1450]
60 Orville Drive
Bohemia, NY 11716
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
E-mail : ASHORE@xxxxxxxxxxxxxxxxxxxx
'If you're going through hell, keep going.'
Winston Churchill
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Greg Wilburn
Sent: Wednesday, October 20, 2021 10:22 AM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: [EXTERNAL] Help with UDS (LDA)
It's been a while since I've worked with the LDA... I'm having trouble populating the LDA from a custom program for use in an ERP program.
In my program I have the following definition:
dcl-ds *n dtaara(*auto);
dumult char(1) pos(879);
end-ds;
In the calc specs I have
dumult = '1';
My program then calls a CLLE program (has some OVRDBF, OVRPRTF, etc.), which then calls an ERP program.
The ERP pgm has the following definition:
D UDS
D DUPGM# 1 5
D DULANC 9 9
D DUM 25 224
D DIM(5) COVER PAGE MSG
D DUMF 25 224
D DUMULT 879 879
D DUSRTF 880 880
However, when I debug the process... the LDA is not updated until the initial program ends.
Any suggestions would be appreciated.
Greg
[Logo]<
https://www.totalbizfulfillment.com/<
https://www.totalbizfulfillment.com>> Greg Wilburn
Director of IT
301.895.3792 ext. 1231
301.895.3895 direct
gwilburn@xxxxxxxxxxxxxxxxxxxxxxx<mailto:gwilburn@xxxxxxxxxxxxxxxxxxxxxxx<mailto:gwilburn@xxxxxxxxxxxxxxxxxxxxxxx%3cmailto:gwilburn@xxxxxxxxxxxxxxxxxxxxxxx>>
1 Corporate Dr
Grantsville, MD 21536
www.totalbizfulfillment.com<
http://www.totalbizfulfillment.com><
http://www.totalbizfulfillment.com<
http://www.totalbizfulfillment.com>>
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx<mailto:RPG400-L@xxxxxxxxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l<
https://lists.midrange.com/mailman/listinfo/rpg400-l>
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx<mailto:RPG400-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at
https://archive.midrange.com/rpg400-l<
https://archive.midrange.com/rpg400-l>.
Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com<
https://amazon.midrange.com>
As an Amazon Associate we earn from qualifying purchases.