×
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.
On 2014-08-29 10:49, Ken Killian wrote:
Iqrpglesrc ns
I 1 6 2Srcseq
I 7 12 0Srcdat
I 13 140 Srcdta
OQRPGLESRC E OUTPUT
O SRCSEQ +0
O SRCDAT +0
O SRCDTA +0
Pretty much off the main topic but I can't help it ...
For a program-described file, you can use a data structure instead of
defining I and O specs. It's nicer when the rest of the program is
free-form, and I think it's easier and less error-prone than I and O specs.
dcl-ds srcline;
srcseq zoned(6 : 2);
srcdat zoned(6);
srcdta char(128);
end-ds;
...
open qrpglesrc;
read qrpglesrc srcline;
dow not %eof;
SRCDTA = %XLATE(hex:blk:SRCDTA);
update qrpglesrc srcline;
read qrpglesrc srcline;
enddo;
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.