MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RExx SDF-ii .. Problem in proc step

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Anand_R
Intermediate


Joined: 24 Dec 2002
Posts: 189
Topics: 60

PostPosted: Wed Jan 15, 2003 4:36 am    Post subject: RExx SDF-ii .. Problem in proc step Reply with quote

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)

VPUT (PREGION,DREGION,SACCT1,SACCT2,SACCT3,SACCT4,SACCT5) PROFILE
)END

above code is working..

If I change to as follows :

)PROC
&LISTVAL = 'AB BC CD DE'
VER(&PREGION,NB,LISTV,&LISTVAL,MSG=STMT021E)

VPUT (PREGION,DREGION,SACCT1,SACCT2,SACCT3,SACCT4,SACCT5) PROFILE
)END

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

Thanks
Back to top
View user's profile Send private message
dorkhead
Beginner


Joined: 07 Jan 2003
Posts: 25
Topics: 0
Location: Lux

PostPosted: Wed Jan 15, 2003 5:34 am    Post subject: Reply with quote

to me, the fact that u initialize value to up to 'AB BC CD DE'
means that it expects the whole line (8 char).

I would suggest to suppress LISTV in the following
VER(&PREGION,NB,LISTV,&LISTVAL,MSG=STMT021E)

and see how it goes.
_________________
Dorkhead
Back to top
View user's profile Send private message Visit poster's website
Anand_R
Intermediate


Joined: 24 Dec 2002
Posts: 189
Topics: 60

PostPosted: Wed Jan 15, 2003 11:40 am    Post subject: Reply with quote

Hi,

I tried that option,, but it was saying syntax error. Is there any manuals that I can get some tutorial on the verify statement..

Thanks
Back to top
View user's profile Send private message
dorkhead
Beginner


Joined: 07 Jan 2003
Posts: 25
Topics: 0
Location: Lux

PostPosted: Wed Jan 15, 2003 12:04 pm    Post subject: Reply with quote

check ISPF documentation on this site

here is a sample VER statement :

&ZVIEW = TRUNC (&ZUPIV,1)
VER (&ZVIEW,NB,LIST,V,S,A,T)

u need a space between var name and first parenthesis.
_________________
Dorkhead
Back to top
View user's profile Send private message Visit poster's website
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Wed Jan 15, 2003 3:25 pm    Post subject: Reply with quote

Just a guess without looking it up... Try
&LISTVAL = "'AB','BC','CD','DE'"


Thats double quotes around single quoted values
Back to top
View user's profile Send private message
Mike
Beginner


Joined: 03 Dec 2002
Posts: 114
Topics: 0
Location: Sydney, Australia

PostPosted: Wed Jan 15, 2003 6:00 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Anand_R
Intermediate


Joined: 24 Dec 2002
Posts: 189
Topics: 60

PostPosted: Thu Jan 16, 2003 4:49 am    Post subject: Reply with quote

Hi wood,

I tried the option, by hardcoding as follows..

VER(&PREGION,NB,LIST,PA,PB,PC,PD,DA,DB,DG,QA,QB,MSG=STMT021E)

It's working fine.. Thanks for ur suggestion

Talty,

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

Thanks a lot to everone
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group