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



Oh ho!  I thought it took up five spaces in memory, not 2. 

I like the idea of getting rid of the overlay and/or just using *NEXT.
Both are much easier than me counting on my fingers to see what the next
position should be.

Thanks!

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Wilt, Charles
Sent: Friday, November 10, 2006 9:29 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Passing *INT2 to RPGLE 

Shannon,

Shouldn't that be:

D Sides             DS                   Qualified               
D  Bread                           8a    OverLay(Sides:1)      
D  NumPcs                          5i 0  OverLay(Sides:9)    
D  NumDrnks                        5i 0  OverLay(Sides:11)


NumDrnks should start in 11 (9+2) not 14.


Personally, I'd get rid over the Overlay keyword all together as you
don't need it.

D Sides             DS                   Qualified               
D  Bread                           8a    
D  NumPcs                          5i 0  
D  NumDrnks                        5i 0  



HTH,


Charles Wilt
--
iSeries Systems Administrator / Developer
Mitsubishi Electric Automotive America
ph: 513-573-4343
fax: 513-398-1121
  

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx 
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Shannon O'Donnell
Sent: Friday, November 10, 2006 10:21 AM
To: RPG programming on the AS400 / iSeries
Subject: Passing *INT2 to RPGLE 

Here's a strange problem...

 

 

I have a command definition I created that looks like this:

 

 

QUALCOL:    QUAL       TYPE(*NAME) LEN(8) RSTD(*YES) DFT(*TOAST) +


                                      SPCVAL((*TOAST) (*BISCUIT)) +


                                      CHOICE('Choose Bread')


 


                   QUAL        TYPE(*INT2) PROMPT('Number of Pieces')


 


 


                  QUAL        TYPE(*INT2) PROMPT('Number of Drinks')


 

 

In my RPGLE program, I have the input parm defined like this:

 

     

D Sides             DS                   Qualified               

D  Bread                            8a    OverLay(Sides:1)      

D  NumPcs                        5i 0  OverLay(Sides:9)    

D  NumDrnks                     5i 0  OverLay(Sides:14)

 

 

 

If I pass this in the command:

 

   ...   Choose Bread:   *BISCUIT

            Number of Pieces:    4

            Number of Drinks:     3

 

In the RPGLE program, under debug, I see this:

 

              Sides.Bread = "*BISCUIT"

              Sides.NumPcs = 4

              Sides.NumDrnks =  -15342

 

 

What's the deal?  Why wouldn't the third value, NumDrinks in 
this case,
be passed correctly?   All the other parameters are.

 

Any ideas?

                

-- 
This is the RPG programming on the AS400 / iSeries (RPG400-L) 
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.