Page 1 of 1

Using DSNAME with ver() statement

PostPosted: Fri May 11, 2012 12:50 pm
by nikesh_rai
Hi,

I have created a new panel with input as PS file. I want to use ver() statement to verify whether the file name is correct or not, using DSNAME, and I am getting the error

ISPP183

Panel 'PAN12' error
Incorrect # of VERIFY values for verification type indicated.


Panel line where error was detected:
VER(&XINPFLE,NONBLANK,DSNAME,LEN,'<=',44,MSG=NSL001)

Can someone help me out this.

Re: Using DSNAME with ver() statement

PostPosted: Fri May 11, 2012 1:19 pm
by NicC
I would re-check the syntax in the manual, especially to see if it should be <=44but I am not even sure if that is required as a DSNAME can only be a max of 44 and I would have thought the DSNAME keyword would check that. Of course, I have not looked at that syntax since HFS came in.

Re: Using DSNAME with ver() statement

PostPosted: Fri May 11, 2012 2:01 pm
by nikesh_rai
Thanks Nicc...

I just got what is the problem here.
ver() syntax should be like this for PS file

VER(&XOTPFLE,NONBLANK,DSNAME)

DSNAME will automatically take care of if syntax error is there in file name, we don't need to put any extra check like LEN,'<=',44 which is causing error

its working fine now.. :)