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


  • Subject: RE: Something funny happened on the way to the PARMUM
  • From: "jt" <jt@xxxxxx>
  • Date: Thu, 14 Sep 2000 21:40:40 -0400
  • Importance: Normal

Booth,

When you call a program using constants for parms, they are by default 32
bytes for character (15.5 packed for numeric).  If you pad the fourth parm
with extra 59 spaces, you'll be OK.

jt

-----Original Message-----
From: owner-rpg400-l@midrange.com [mailto:owner-rpg400-l@midrange.com]On
Behalf Of booth@martinvt.com
Sent: Thursday, September 14, 2000 8:49 PM
To: rpg400-l@midrange.com
Subject: Something funny happened on the way to the PARMUM


Some days I feel stupid, other days I look stupid.

Here's the code:

  C    *ENTRY PList
  C           Parm         Parm1    6
  C           Parm         Parm2   27
  C           Parm         Parm3    5
  C           Parm         Parm4   60
  C           Parm         Parm5    5

Then we run debug on the program with  Call Prog  ('ABC' 'DEFGHI' '12345'
'a' 'b')
Parms 1,2,3, & 5 are just fine but parm4 will have the "a" in position 1
and "b" at about position 34.  Several of us have looked at this and
checked everything we can think of.

What say ye?   Simple to solve?
_______________________
Booth Martin
Booth@MartinVT.com
http://www.MartinVT.com
_______________________
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.