DCL-C Hex x'000102030405060708090A0B0C0D0E0F+
101112131415161718191A1B1C1D1E1F+
202122232425262728292A2B2C2D2E2F+
303132333435363738393A3B3C3D3E3F';
DCL-C blk x'40404040404040404040404040404040+
40404040404040404040404040404040+
40404040404040404040404040404040+
40404040404040404040404040404040';
From my Sit & Spin program to remove special Hexadecimal values that SEU-Pukes put into their code to add color. Which RDi 9.1 ALREADY HAS!!!
<LOL>
PS. Thanks again Barbara for your Tip! I love it! :)
-Ken Killian-
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Gary Thompson
Sent: Tuesday, September 02, 2014 8:51 AM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries
Subject: Re: [WDSCI-L] RDi 9.1 issue on uploading sources with colorized comments
Barbara,
I'm missing something: In your example [SRCDTA = %XLATE(hex:blk:SRCDTA);], what are 'hex' and 'blk' ?
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Barbara Morris
Sent: Friday, August 29, 2014 6:11 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries
Subject: Re: [WDSCI-L] RDi 9.1 issue on uploading sources with colorized comments
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;
--
Barbara
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/wdsci-l.
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.