Peter

True, but it still lets a user type decimal points - the good thing is, it does not matter, because the number passed in does not have the decimals - it is still only a *DEC (3 0)

I'd never tried putting decimal points into a number I knew was going to be an integer - interesting!

Vern
-------------- Original message --------------
From: "Peter Dow (ML)" <maillist@xxxxxxxxxxxxxxx>

Hi Dan,

1) For v5r2 try chapter 9 of
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c4157215.pdf

2) PARM KWD(TEST) TYPE(*DEC) LEN(3 0) RANGE(001 999) should
do what you want.

*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
pdow@xxxxxxxxxxxxxxx /

Dan wrote:
Question 1: I am trying to find the IBM reference manual for command
programming on InfoCenter (V5R3). I didn't find the PDF for it, so I
searched for "choice program" see if that would point me to it. The search
takes me to the "Qualifier Definition (QUAL)" page, but this isn't what I'm
looking for, and I was hoping that I'd get a link that would take me to the
table of contents for the manual but I am unable to navigate to it.
Frustrating!

Since I can't figure out Question 1:
Question 2: I want to define a parameter on a command as a 3-digit integer,
with a range of 001 - 999. If I define it as TYPE(*DEC), the definition
allows non-integer decimals (i.e., 9.123, 147.9, etc.). I tried the integer
types *INT2/4 & *UINT2/4, but those don't play nice with the LENgth value of
3. I would like to avoid having to write a command validation program.
Ideas?

TIA,
Dan

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-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.