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



Rory,

I've seen that technique used in some articles I found. When I get a spare
minute, I'll try that approach.

Buzz Fenner
Systems Analyst/Network Administrator
870.930.3374
mailto:bfenner@xxxxxxxxxxxxxxxx



message: 1
date: Wed, 3 Sep 2008 10:54:38 -0700
from: "Rory Hewitt" <roryhewitt@xxxxxxxxx>
subject: Re: QMHSNDPM, QMHRMVPM, & Error Message Subfiles

Buzz,

Frankly, I simplify things as follows:

1. Change the DDS to simply refer to the 10-byte program name:

A R ERRSFL SFL
A SFLMSGRCD(8)
A MSGKEY SFLMSGKEY
A PGMNAM SFLPGMQ
A R ERRCTL SFLCTL(ERRSFL) OVERLAY
A WINDOW(NTRKEY)
A LOCK
A SFLSIZ(50) SFLPAG(1)
A 03 SFLEND
A 03 SFLDSP
A 03 SFLDSPCTL
A 03 SFLINZ
A PGMNAM SFLPGMQ

2. Change the API calls to simply send messages to the program message queue
(which can be retrieved from the SDS, defined at the global level):

D PgmSDS SDS
D PgmNam 10A
...
C callp SndPgmMsg('CPF9897': 'QCPFMSG *LIBL':
C errTxt: wwMsgLen: '*INFO':PgmNam:
C 0: wwTheKey: dsEC);
...
C callp RmvPgmMsg(PgmNam:0:' ':'*ALL':dsEC);

It's also much simpler to understand for the next person.

HTH,

Rory


------------------------------







--
PRIVACY WARNING: For auditing purposes, a copy of this message has been
saved in a permanent database.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.