Posted: Wed Jan 15, 2003 4:36 am Post subject: RExx SDF-ii .. Problem in proc step
Hi ,
My logic is not working in the PROC section of the ISPF panels(SDF-II). I have following code..
)PROC
&LISTVAL = 'A B'
VER(&PREGION,NB,LISTV,&LISTVAL,MSG=STMT021E)
Above code does the validations against the values I entered in one of the input fields..
Problem is after I changed to above .. even I entered right values(AB or BC or CD or DE) it was saying the message 'VALID VALUES ARE AB BC CD DE' .. which I stored in STMT021E.
Note : &PREGION accepts the input field entered on the screen
Please some one can guide me why it is not accepting double character values. what changes I should do ..
Joined: 03 Dec 2002 Posts: 114 Topics: 0 Location: Sydney, Australia
Posted: Wed Jan 15, 2003 6:00 pm Post subject:
I've actually checked what you have given and it does work, the fact that you are receiving the STMT021E message also indicates that the LISTV is working, just that what is being checked is not as expected.
Possibly the value being checked is not AB BC etc, my initial guess would be that PREGION is not upper case. Try :-
&LISTVAL = 'AB ab Ab Ab BC bc Bc bC ....'
or use the CAPS(ON) attribute. for the input field.
You aren't accidentally changing the value of PREGION ?, include PREGION in the message (I'd do this anyway) make the message something like
'PREGION ?????? IS NOT ONE OF THE VALID VALUES AB BC CD DE'
In the message I'd use &LISTVAL as oposed to hard coding AB BC CD DE (not sure if you have). e.g. the message would be something like :-
STMT021E 'PREGION INVALID'
'PREGION &pregion IS NOT ONE OF THE LISTED VALUES &listval '
If this does not pinpoint the problem then please let us see the code for the whole panel. _________________ Regards,
Mike.
I tried ur option,, it's not accepting some syntax error..
Mike,
Thanks for ur suggestion, it's really valid suggestion.. But in this case it seems to be not that case.. But we should keep in mind your suggestion while designing any new screens ..
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum