SAS - ERROR: WRITE ACCESS TO MEMBER IS DENIED
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Application Programming

#1: SAS - ERROR: WRITE ACCESS TO MEMBER IS DENIED Author: DibakarLocation: USA PostPosted: Fri May 25, 2018 3:33 pm
    —
Following SAS code is working fine -

Code:
LIBNAME mysasds 'DB.SAS.DATASET'; 
                                         
data mysasds.wtclub;   


But when I allocate the dataset in SAS JCL step then I get the error
Quote:
ERROR: WRITE ACCESS TO MEMBER MYSASDS.WTCLUB.DATA IS DENIED.


JCL:
Code:
//SAS      EXEC SAS                                 
//SYSIN    DD DISP=SHR,DSN=DB.SAS(MYSASPGM)   
//SAS9.MYSASDS DD DISP=SHR,DSN=DB.SAS.DATASET 
//SAS9.SASLIST DD SYSOUT=*                           
//SAS9.SASLOG  DD SYSOUT=*       


SAS code:
Code:
data mysasds.wtclub;                   


Alternative SAS Code:
Code:
LIBNAME mysasds BASE;                   
                                       
data mysasds.wtclub;     

#2:  Author: DibakarLocation: USA PostPosted: Mon May 28, 2018 11:54 am
    —
Looks like SAS need exclusive access to data library. Changing to DISP=OLD solved the problem.

#3:  Author: kolusuLocation: San Jose PostPosted: Mon May 28, 2018 12:13 pm
    —
Dibakar,

Thanks for the update and the solution.



MVSFORUMS.com -> Application Programming


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group