× 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.



I must be going crazy... here's an example that works:
FFD001P1 O E PRINTER USROPN

Then in the compile listing, I search for *INOF and low and behold it
magically appears:

Global Field References:
Field Attributes References (D=Defined M=Modified)
*INOF N(1) 344 372

The two references for it are IF statements (ie, IF *INOF print headings...)

I asked a guy I used to work with years ago and he said "I don't know... it
just works in all our programs too!"
I know there's something. But years of copying code is making it slip by
my mind how to get that darned thing to appear. And now it's not that I
have to do it, it's that it's driving me crazy as to why it doesn't work.

I don't see anything in the DDS for the printer file either that references
INOF.

Brad


On Thu, Jul 17, 2014 at 12:00 PM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:

On 7/17/2014 12:10 PM, Bradley Stone wrote:
(moved from Midrange-L)

I'm having a major brain malfunction this morning. :)

I haven't created a Printer File from scratch for years but now I have
to.
I created it, added an F spec to my RPG program, declared it as:

FMYPRTFILE O E PRINTER

I'm seeing that *INOF isn't being declared at compile time like I assumed
it would. I know I'm missing something from somewhere to make that
happen.
:)

OFLIND(*INOF) doesn't work either.

"The parameter for keyword OFLIND is not valid; keyword is ignored. "

When using OFLIND you have to specify *IN01-*IN99 and manually reset it
to
off as well.

All other programs I've done with external printer files don't have
OFLIND
either. INOF magically appears during compile.

I don't recall that happening. All of my external printer files have
OFLIND(*IN99) and I use 99 where I would use OF. Yes, I set 99 off when
I WRITE HPRTHDR.
--buck

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.