While working to convert an SQLRPGLE program I wrotein all free into mixed format I tried to compile the program but received an SQL0312 on the lines where I FETCH data into a DS.
Here's the d-spec version
and the allfree version
The all free version compiles fine but when I try to compile the d-spec version the precompiler says extractds is undefined or unusable. Can anyone spot if I missed anything during the conversion?
Sorry about the spacing. I am posting this from my phone
Here's the d-spec version
Code:
D extractDS DS qualified D shortname 18a D brchcode 5s 0 D refnum 12s 0 D prodcode 5s 0 D proddsc 30a D curcode 3p 0 D curdsc 3a D date1 9p 0 D date2 9p 0 D amt1 17p 2 D amt2 17p 2 D tsum 21p 5 D convamt 17p 2 D storename 40a
Code:
dcl-ds extractds qualified; shortname char(18); brchcode zoned(5:0); refnum zoned(12:0); prodcod zoned(5:0); proddsc char(30); curcode packed(3:0); curdsc char(3); date1 packed(9:0) ; date2 packed(9:0); amt1 packed(17:2); amt2 packed(17:2); tsum packed(21:5); convamt packed(17:2); storename char(40); end-ds
Sorry about the spacing. I am posting this from my phone
Comment