×
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.
Thanks for the tip Aaron. That was one article I had not seen yet. It
demonstrated reading a file a record at a time to fill the MODS, so it was
not quite what I was looking for.
That said, it got me thinking of another approach (one I could of sworn I
tried hours ago), and now my code works!
Thanks again,
JD
Working code - load DS Array direct from SQL:
H DFTACTGRP(*NO)
DarrDs ds qualified dim(50)
D SKU 3a
D Qty 7s 0
/free
exec sql
declare c1 cursor for
Select
SKU, Qty
From
OnHand
Where
CLASS='Z';
exec sql
open c1;
exec sql
fetch c1 for 50 rows into :arrDs;
exec sql
close c1;
*inlr = *on;
Return;
/end-free
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.