Free yourself from Punch-Card Mentality...
Use external Printer files, which RDI supports.
Or you could use a data-structure for Printer files.
Welcome to the 21st century, Punch-card machines and Punch-card-Mind-set are no longer required!
Sample dummy code:
**free
dcl-f qsysprt printer(198);
dcl-ds output len(198) end-ds;
output = 'Print line-one';
write qsysprt output;
output = '**** my audit report ****';
write qsysprt output;
*inlr = *on;
output = '*INLR = ' + %char(*inlr);
write qsysprt output;
return;
PS. You could map Data-structure like your old O-spec. Which is what some do.
My preferred method is external printer files. Which using the designer inside of RDI is the way to go!
-Ken Killian-
-----Original Message-----
From: WDSCI-L <wdsci-l-bounces@xxxxxxxxxxxx> On Behalf Of Dan
Sent: Thursday, May 3, 2018 12:01 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Inline Syntax Checking
You don't have to worry about /copy members; the compiler handles that automatically. For any comments with * in column 7, just add // somewhere before it.
Also, in addition to **free, there is **end-free, which does what you think it does. I believe this is undocumented and not supported, but I've used it so that I could have output specs for a report in a program I created.
IBM uses it for embedded SQL code that it converts to fixed column RPG. I suppose that, if **end-free went away, I'd have to put the O specs in a /copy member.
- Dan
On Thu, May 3, 2018 at 10:58 AM, Greg Wilburn < gwilburn@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
OK now I see! :)
I stopped using the "slash-free" a long time ago. Somewhere I missed
"asterisk-asterisk-free".
I'm on v7r3 - just upgraded a few weeks ago. Have the latest TR.
Added **free as the first statement in one of my source members, but
now it doesn't like my comments where I used single asterisk in column
7. I would have to change the comments in my source members and all
the /copy members.
Eeek. Maybe I'll just leave things alone for now.
Thanks Dan (and Ken)!
--
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:
https://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.