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 

Unable to protect pds thru PROTECT ('dsname') command

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


Joined: 10 Jan 2007
Posts: 33
Topics: 12

PostPosted: Mon Jan 22, 2007 9:14 am    Post subject: Unable to protect pds thru PROTECT ('dsname') command Reply with quote

When I gave
PROTECT 'NBK2P9G.ASIR.EMPTY'

it asks for password

ENTER NEW PASSWORD -

i entered 'a' , abcde , 1234 ,'1234' .... I have tried all these options but system says

UNABLE TO PROTECT DATA SET 'NBK2P9G.ASIR.EMPTY'+
I/O ERROR IN PASSWORD DATA SET


Pls help me...
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Jan 22, 2007 9:40 am    Post subject: Reply with quote

arshadh,

You forgot to provide the options for the PROTECT command. Check this for a detailed explanation of the PROTECT command.


Code:

FUNCTION -                                                           

THE PROTECT COMMAND IS USED TO CREATE, MODIFY, OR REMOVE THE         

PROTECTION ATTRIBUTES OF NEW AND OLD DATA SETS.                     

SYNTAX -                                                             

       PROTECT   'DSNAME'  ADD('PASSWORD2')/                         

                           REPLACE('PASSWORD1','PASSWORD2')/         

                           DELETE('PASSWORD1')/                     

                           LIST('PASSWORD1')                         

                           PWREAD/NOPWREAD  PWWRITE/NOWRITE         

                           DATA(''STRING'')                         

REQUIRED - 'DSNAME'                                                 

DEFAULTS - ADD                                                       

OPERANDS -                                                           

'DSNAME' - NAME OF DATA SET TO BE PROTECTED.                         

ADD('PASSWORD2')                                                     

         - SPECIFIES THAT AN ENTRY FOR THE DATA SET IS TO BE ADDED TO

           THE PASSWORD DATA SET.                                   

  'PASSWORD2'                                                       

         - IS THE NEW PASSWORD FOR THIS PASSWORD DATA SET ENTRY     

REPLACE('PASSWORD1','PASSWORD2')                                     

         - SPECIFIES THAT AN ENTRY FOR THE DATA SET IS TO BE CHANGED

           IN THE PASSWORD DATA SET.                                 

  'PASSWORD1'                                                       

         - IS THE OLD OR CURRENT PASSWORD FOR THIS PASSWORD DATA SET

           ENTRY                                                     

  'PASSWORD2'                                                       

         - IS THE NEW PASSWORD FOR THIS PASSWORD DATA SET ENTRY     

DELETE('PASSWORD1')                                                 

         - SPECIFIES THAT AN ENTRY FOR THE DATA SET IS TO BE REMOVED

           FROM THE PASSWORD DATA SET.                               

  'PASSWORD1'                                                       

         - IS THE OLD OR CURRENT PASSWORD FOR THIS PASSWORD DATA SET

           ENTRY                                                     

LIST('PASSWORD1')                                                   

         - SPECIFIES THAT THE SECURITY COUNTER, ACCESS TYPE, AND THE

           USER DATA FOR THIS ENTRY ARE TO BE LISTED.               

  'PASSWORD1'                                                       

         - IS THE OLD OR CURRENT PASSWORD FOR THIS PASSWORD DATA SET
            ENTRY.                                                     

 PWREAD   - INDICATES THAT THE DATA SET CAN BE READ ONLY WHEN THE     

            PASSWORD IS SUPPLIED.                                     

 NOPWREAD - INDICATES THAT THE DATA SET CAN BE READ WITHOUT A         

            PASSWORD.                                                 

 PWWRITE  - INDICATES THAT THE DATA SET CAN BE WRITTEN ONLY WHEN THE   

            PASSWORD IS SUPPLIED.                                     

 NOWRITE  - INDICATES THAT THE DATA SET CAN NOT BE WRITTEN             

 DATA(''STRING'')                                                     

          - INDICATES THAT THE INFORMATION ''STRING'' IS TO BE ADDED   

            TO THE PASSWORD DATA SET ENTRY.                           

   ''STRING''                                                         

          - SPECIFIES UP TO 77 BYTES OF CHARACTER INFORMATION ENCLOSED

            IN SINGLE QUOTES WHICH IS TO BE ADDED TO THE PASSWORD DATA

            SET ENTRY.                                                 


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
arshadh
Beginner


Joined: 10 Jan 2007
Posts: 33
Topics: 12

PostPosted: Mon Jan 22, 2007 10:46 am    Post subject: Reply with quote

Kolusu,

The REQUIRED is the DSNAME and the DEFAULT is the ADD...

i.e by default it will ask for password
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Mon Jan 22, 2007 10:54 am    Post subject: Reply with quote

I/O ERROR IN PASSWORD DATA SET

My guess is that the PASSWORD Dataset doesn't exist.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Jan 22, 2007 12:27 pm    Post subject: Reply with quote

Thid "old" method used a dataset to contain the passwords and options for each protected item. I think the dataset name had to be 'PASSWORD'. The PASSWORD dataset itself also had to be protected.

If this file doesn't exist on your system you'll need to use the "modern" method of RACF (or ACF-2, etc.) to protect datasets.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
semigeezer
Supermod


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

PostPosted: Mon Jan 22, 2007 3:28 pm    Post subject: Reply with quote

As far as I know, password protection hasn't been supported for over a decade, maybe 2. Password fields really should have been removed from ISPF many years ago since they don't do anything anymore.

Use RACF/ACF2/TopSecret/etc
Back to top
View user's profile Send private message Visit poster's website
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