× 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: F35 - Y2K
  • From: Brian Johnson <brian@xxxxxxxxxxxxxxx>
  • Date: Fri, 14 Aug 98 09:29:00 -0500
  • >Received: from Connect2 Message Router by helps.helpsystems.com via Connect2-UUCP v1.10; Fri, 14 Aug 98 09:36:31 -0500
  • Organization: HELP/Systems


Thank you very much.  I can see now that my feeble attempt was wiping out   
the length in the first two bytes of the return variable.  :(

 -----Original Message-----
From: Tim McCarthy
Sent: Thursday, August 13, 1998 17:40
To: brian; 'mail@uucp <MIDRANGE-L@midrange.com>'
Subject: RE: F35 - Y2K

Here's a simple example...

Define a command parameter (*CHAR) with a length of 1 RTNVAL(*YES),   
MIN(0),
MAX(1) and VARY(*YES)

The CPP should defined with a parameter of the largest length expected   
(+2)
 - ( if you use pointers you don't have to worry about this length.) The
first two bytes of the variable will be the binary length of the actual
variable used on the command. To return a value just move that value into
the passed variable from positions 3 to the passed length.

Tim

At 02:24 PM 8/13/98 -0500, you wrote:
>
>Hey!  I tried that (command with variable length parameter) a while   
back,
>but was not successful.  The command was RTVAPPVAL, modeled on   
RTVSYSVAL.
> Give a value name, and get the value back.  The command program (RPGIV)   
    

>defined the output parameter with the length of the longest value that   
    

>could be requested.  I was very careful to only change the positions of   
    

>the output parameter that corresponded to the length of the requested
>APPVAL.  The value returned was always garbled.  I gave up after a short   
    

>time.  What's the secret?
>  

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-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 ...


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.