× 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: Program call in visual age
  • From: "AnanthaRamaiah, Gururaja (CTS)" <AGururaj@xxxxxxxx>
  • Date: Tue, 9 Nov 1999 09:30:39 +0530

Title: Program call in visual age
Hi,
   Thanks for the replies....
     I am passing an integer variable as string... I am using setvarAsString(String val) function generated by smart guide.
    For example.... one of my field in RPG program is Name. So I am calling setNameAsString("112");
 
    The field in RPG has an explicit definition(4S 0).
    Also as padreny is telling, when i see the dump the zoned fields are displayed as packed. I didn't u'stand why?.
   
Regards,
Guru
 
-----Original Message-----
From: Jaume Padreny i Rubí [mailto:padreny@retemail.es]
Sent: Tuesday, November 09, 1999 1:02 AM
To: JAVA400-L@midrange.com
Subject: RE: Program call in visual age

Are there a explicit definition of a zoned field in rpg?
d field1        4S0
Betwen rpg's call RPG change zoned fields to packed fields
----- Original Message -----
Sent: Monday, November 08, 1999 1:30 PM
Subject: Re: Program call in visual age

A quick quess.  The would happen to be blanks?  When the data was passed, were leading zeros used to fill the variable?
 
Eurrat
-----Original Message-----
From: AnanthaRamaiah, Gururaja (CTS) <AGururaj@DBSS.COM>
To: java400-l@midrange.com <java400-l@midrange.com>
Date: Monday, November 08, 1999 2:05 AM
Subject: Program call in visual age

Hi,
        I am using Visualage Program call smart guide to create a program call. If the parameters passed are Alphanumeric then the program call is working fine, when invoked. I tried to pass a Zoned decimal parameter (AS400ZonedDecimal) to a RPG program. The smart guide created the class file successfully. The size of the passed variables are exactly matching with those declared in the RPG program. But when I invoke the RPG program I am getting the following message in  DSPMSG *SYSOPR

Decimal-data error occurred (C G D F)
 Reply . . :   D

I checked the dump. The Zoned decimal fields found to contain junk values... Can anyone tell me how to overcome this problem...

Thanks in advance,
Guru


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.