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



The length on the prototype is not a field declaration. It is the limit of the
size of the value you can pass to the program/procedure. So 64 or 65535 makes no
difference in this prototype in this context. 

-Bob Cozzi
www.RPGxTools.com
RPG xTools - Enjoy programming again.


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On
Behalf Of Jim Wiant
Sent: Tuesday, February 28, 2006 1:10 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: CWCCVTDT continued....


>>If you go to the downloads page on rpgiv.com you can download the API
prototypes
>>for several APIs.
>>Here's the prototype for QWCCVTDT.

>>     D QWCCVTDT        PR                  ExtPgm('QWCCVTDT')
>>     D  inFmt                        10A   Const OPTIONS(*VARSIZE)
>>     D  inDate                       64A   Const OPTIONS(*VARSIZE)
>>     D  outFmt                       10A   Const OPTIONS(*VARSIZE)
>>     D  outDate                      64A   OPTIONS(*VARSIZE)
>>     D  api_error                          LikeDS(QUSEC)
>>     D                                     OPTIONS(*VARSIZE)


I'm curious Bob. I just checked IBM's website and it still looks like
this for the input variable to the API:

Input Variable Format
This table shows the format used for the input variable parameter.

Input Format Input Variable 
*CURRENT Parameter is ignored. 
*DTS System time-stamp. The first 8 characters are used. 
*YYMD, *MDYY, *DMYY, *LONGJUL The first 17 characters are used. See
17-Byte Character Date and Time Value Structure. 
All other character formats The first 16 characters are used. See
16-Byte Character Date and Time Value Structure. 

 
Why define 64 with a variable size? Wouldn't 17 be enough?

Thanks

JPW
 


This message has been sent from Foodstuffs (Auckland) Limited ("Foodstuffs").

The information contained in this message and or attachments 
is intended only for the person or entity to which it is 
addressed and may contain confidential and/or privileged 
material. Any review, retransmission, dissemination or other 
use of, or taking of any action in reliance upon, this 
information by persons or entities other than the intended 
recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from any 
system and destroy any copies.

The views and opinions expressed in this message may be those
of the individual and not necessarily those of Foodstuffs, 
and are not given or endorsed by it.

Please note that this communication does not designate an 
information system for the purposes of the Electronic 
Transactions Act 2002.


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.