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 

VER command in PANEL

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


Joined: 29 Jan 2006
Posts: 71
Topics: 22

PostPosted: Sun Jan 29, 2006 11:42 pm    Post subject: VER command in PANEL Reply with quote

Hi,
I am using the VER command inside the panel for validating a dataset name
VER(&VAR1, DSNAME)

On giving a dataset name with lenght of 44 in the panel, I am geeting the error as "Invalid Dataset Name". Where 44 lenght is a valid dataset name.
It is accepting only till 42 lenght dataset name.
Please let me know whether panel will accept only up to 42 character length or, is there any othere way to validate the DSNAME inside the panel ?
Thanks
_________________
RAJA MOHAMED
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Mon Jan 30, 2006 12:17 am    Post subject: Reply with quote

The VER statement (not command) with the DSNAME keyword is the way to go. However, you are right about the 44/42 issue. Here is a quote from the fine manual:
Quote:
The variable must contain a valid TSO data set name. A data set name qualifier must begin with an alphabetic character (A-Z, $, @, or #). The remaining characters must be either uppercase alphanumeric or a hyphen (-). A period is used to connect each qualifier in the data set name.

ISPF first determines if the TSO/E NOPREFIX PROFILE option is in use. If it is, ISPF does use a prefix in the calculation of the data set length. A maximum of 44 characters can be entered for a data set name, if that data set name is enclosed in quotes. If the TSO/E NOPREFIX PROFILE option is in use, a maximum of 44 characters can be entered for a data set name when it is not enclosed within quotes. If the TSO/E NOPREFIX PROFILE option is not in use, a maximum of 42 characters can be entered for a data set name, not enclosed in quotes. ISPF uses the minimum data set prefix of two characters (one character and a period separator) during its calculation of the data set name length.


I never came up against this situation, as we don't have that long dataset names.

my suggestion for you is either using a dataset name without quotes, or using a panel exit with LISTDSI (take a look at the PANEXIT statement).


O.
________
no2 vaporizers


Last edited by ofer71 on Sat Feb 05, 2011 11:29 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
ha.rajamohamed
Beginner


Joined: 29 Jan 2006
Posts: 71
Topics: 22

PostPosted: Mon Jan 30, 2006 12:42 am    Post subject: Reply with quote

Thanks ofer71,
how to make TSO/E NOPREFIX PROFILE in use .
_________________
RAJA MOHAMED
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Mon Jan 30, 2006 12:46 am    Post subject: Reply with quote

From within your REXX, issue the following instruction:
Code:
ADDRESS TSO "PROFILE NOPREFIX"


You can read more about the PROFILE command in the fine manual.

O.
________
Urraco


Last edited by ofer71 on Sat Feb 05, 2011 11:30 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Jan 30, 2006 12:48 am    Post subject: Reply with quote

If the panel is constructed correctly and the underlying variables are VDEFINEd correctly, a dsname with an unquoted length of 44 should work assuming profile noprefix. If it does not, report it to IBM as a bug. You might want to test this with a minimal panel (1 field) and/or post your panel source here with [code] ... [/code] tags around it.

I'd suggest using DSNAMEQ or DSNAMEPQ instead of DSNAME to make it compatible with base ISPF.
Back to top
View user's profile Send private message Visit poster's website
ha.rajamohamed
Beginner


Joined: 29 Jan 2006
Posts: 71
Topics: 22

PostPosted: Mon Jan 30, 2006 5:55 am    Post subject: Reply with quote

Hi thanks for all the help, I have achived the 44 char checking by setting the TSO/E NOPREFIX PROFILE while intiating the REXX and resetting it while coming out .
_________________
RAJA MOHAMED
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