Neil, Charles, and Chuck,
Thanks for explaining the details of the messge. The positioning of the
paramater didn't jump out at me right away, but it makes sense now.
I don't really have an answer as far as using G instead of I. I think
another message was being sent that needed to be replied to when the
option I was taken, but not when option G was taken. I can verify
whether or not that is true.
What benefit does replying with an I give me as opposed to G? Right now
answering with a G doesn't eject a blank label prior to printing.


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Neil Palmer
Sent: Wednesday, June 18, 2008 11:15 AM
To: Midrange Systems Technical Discussion
Subject: RE: ADDRPYLE for a message to a writer

That is not the way you calculate it.
Look at the output I included from the DSPMSGD CPA4002.
You are looking for substitution parameter &3.
It shows you &1, &2 and &3 are all 10 bytes.
Therefore &3 (the printer name) starts in 21.

I've done this on may systems and it works perfectly.

PS - and why reply with G instead of I ?

Neil Palmer, Cambridge, Ontario, Canada

(This account not monitored for personal mail, remove the last two
letters before @ for that)


--- On Wed, 6/18/08, Grizzly Malchow <grizzlym@xxxxxxxxxxxxxxxxxxxxx>
wrote:

From: Grizzly Malchow <grizzlym@xxxxxxxxxxxxxxxxxxxxx>
Subject: RE: ADDRPYLE for a message to a writer
To: "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Received: Wednesday, June 18, 2008, 10:06 AM

Starting at the letter V in the word Verify, by my count,
&3 starts in
position 29. The word printer starts in position 21.
As Pete suggested I copied the QDFTJOBD and I was going change the
usrprf QSPLJOB to use the new job description, but I received a
message stating The system user profile cannot be changed.
At this point I think my best option is to modify the start up of the
writers to be ALIGN(*FILE) as Charles suggested.
Thanks to everyone for your help.
Griz

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Neil Palmer
Sent: Tuesday, June 17, 2008 6:27 PM
To: Midrange Systems Technical Discussion
Subject: Re: ADDRPYLE for a message to a writer

Your message data start position of 29 in CMPDTA is wrong.

DSPMSGD CPA4002 shows:
Verify alignment on printer &3.

Field Data Type Length
&1 *CHAR 10
&2 *CHAR 10
&3 *CHAR 10
&4 *BIN 2
&5 *CHAR 10
&6 *CHAR 10

You can see that &3 starts in 21, not 29.

Also, if teh assumption here is that the forms are always aligned, why

auto reply with a 'G' and waste an extra form instead of with an 'I' ?

Neil Palmer, Cambridge, Ontario, Canada




__________________________________________________________________
Be smarter than spam. See how smart SpamGuard is at giving junk email
the boot with the All-new Yahoo! Mail. Click on Options in Mail and
switch to New Mail today or register for free at http://mail.yahoo.ca
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2015 by MIDRANGE dot 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 here. If you have questions about this, please contact