I created a command with validity checker defined. The validation work fine but the parameter list is not refreshed from previous calls to the command.
I've defined a simple list for "user name " parameter in my command.
If I give 3 user names (A, B, & C) in the list, in the next call even if I enter just 1 name (say, D), the program receives users as D, B, & C.
The Validity checker and the CPP are written in CL.
Can you suggest what I may be missing?
Software/Hardware used:
ASKED:
June 8, 2009 6:02 PM
UPDATED:
October 22, 2009 2:32 AM
Hi Sloopy,
Thanks for looking into this.
I have been checking the length the same way you mentioned… may be I got it wrong so I’m pasting the code below. Please take a look.
This is the the parameter as defined in the command source:
PARM KWD(USER1) TYPE(*NAME) LEN(10) +
MIN(1) MAX(3) CHOICE(‘Name’) PROMPT(‘User +
Profile(s)’)
This is the piece from the validity checker:
CHGVAR VAR(&USER#) VALUE(%BINARY(&USER1 1 2))
Strangely enough, even if I do not enter more than 1 value in the list, it still returns the number as 3 based on my previous call.
Please supply OS version/release and cumulative PTF level.
Also, please supply (1) a little more code and (2) the command used to compile the validity checker. Other questions might follow based on those answers.
Tom