× 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: "Peter Dow" <pcdow@xxxxxxxxx>
  • Date: Thu, 14 Sep 2000 21:21:34 -0700

Hi Booth,

This is the old problem of calling a program from the command line or
submitting a job that has a call command with parameters. All alpha
parameters will be passed to the called program as 32A and numeric parms
will be passed as 15.5 packed decimal.

If your intent is to evenutally call this program from another program, and
you only need to call it from a command line for testing purposes, you'll
just have to do your call like this:

    CALL PROG ('ABC' 'DEFGHI' '12345' 'a
' 'b')

If it's meant to be called from the command line all the time, create a
command for it.

HTH
Peter Dow
Dow Software Services, Inc.
909 425-0194 voice
909 425-0196 fax


----- Original Message -----
From: <booth@martinvt.com>
To: <rpg400-l@midrange.com>
Sent: Thursday, September 14, 2000 5:48 PM
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
> +---


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.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.