Using DSNAME with ver() statement



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Using DSNAME with ver() statement

Postby nikesh_rai » Fri May 11, 2012 12:50 pm

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.
Thanks
Nikesh Rai
nikesh_rai
 
Posts: 192
Joined: Tue Oct 18, 2011 1:27 am
Has thanked: 17 times
Been thanked: 0 time

Re: Using DSNAME with ver() statement

 

Re: Using DSNAME with ver() statement

Postby NicC » Fri May 11, 2012 1:19 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Using DSNAME with ver() statement

Postby nikesh_rai » Fri May 11, 2012 2:01 pm

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.. :)
Thanks
Nikesh Rai
nikesh_rai
 
Posts: 192
Joined: Tue Oct 18, 2011 1:27 am
Has thanked: 17 times
Been thanked: 0 time


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post