Hi Peter
I think that the command prompt display panel has 20 display record formats
with the most common/popular field sizes defined - these being the 20 Scott
listed.
When the command is prompted, the system uses the closest record format for
each parameter. Doing it any other way would mean a load more record
formats and processing when the command is prompted.
Jonathan
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[
mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Peter.Colpaert@xxxxxxxxx
Sent: 02 May 2007 07:09
To: Midrange Systems Technical Discussion
Subject: Re: Strange issue with CMD parameter length
Scott,
it doesn't really make sense, but it does explain why I get 25 for the
19-char long parameter...
Thanks,
Peter Colpaert
Application Developer
PLI - IT - Kontich, Belgium
-----
Yoda of Borg are we. Futile is resistance, assimilated will you be.
-----
Scott Klement <midrange-l@xxxxxxxxxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
02/05/2007 07:53
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
cc
Subject
Re: Strange issue with CMD parameter length
Peter,
Take a look at the INLPMTLEN (initial prompt length) parameter of the
PARM command. You'll note that the possible values for the initial
prompt length are as follows:
*CALC, *PWD, 1-12, 17, 25, 32, 50, 80, 132, 256, 512
The default value is *CALC which means that the length will be
calculated -- that is, the closest length that's the same or higher than
the field size will be used.
Since the possible lengths are 1-12, 17, 25, 32 (and so forth) the
length for an 18 character field will be 25. (17 would be too small,
and the next highest number is 25.)
Make sense?
As an Amazon Associate we earn from qualifying purchases.