Solved

Userid doesn't have access to data set

Posted on 2012-03-16
6
782 Views
Last Modified: 2012-03-17
Hello there,

I'm trying to run a job on zOS mainframe.  I've created my data sets, IND$FILE'd my COBOL and run JCL etc. and I can successfully submit the job.  

The problem is that the job then sits in the input queue.  When I look at the job in sdsf I see reference to the user not having access to the data set.  

I'm not sure what to do.  i created the dataset with my userid but when I submit the job it asks me to add characters to the job.  So, if I type an A for instance, It will say myuserA doesn't have access to the dataset myuser.blah.blah

Any idea what I can do?

Obviously I don't know too much about mainframe.  

TIA!
0
Comment
Question by:ttist25
  • 3
  • 3
6 Comments
 
LVL 57

Expert Comment

by:giltjr
ID: 37731623
You will not get an security violation on file access until after the job starts to run.

On z/OS TSO user-ids are limit to 7 characters.  This is so that the system can automatically add a 8th character to uniquely identify jobs.  Job names are limited to 8 characters.  

If the job is not running there are a couple of things that could be going on.

1) Do you happen to have TYPRUN=HOLD on the job card?
2) You have submitted the job in a job class (CLASS=x) that either does not exist, the initiators that are allowed to run CLASS x are drained, or they have jobs already running in them.

You need to check with somebody to see what class you should be using.

Can you copy and paste full message that says you don't have access to a file?
0
 
LVL 1

Author Comment

by:ttist25
ID: 37731672
Sure - here you go:

 20.58.29 JOB06585 ---- FRIDAY,    16 MAR 2012 ----                            
 20.58.29 JOB06585  IRR010I  USERID AJKB1    IS ASSIGNED TO THIS JOB.          
 20.58.29 JOB06585  ICH70001I AJKB1    LAST ACCESS AT 20:52:00 ON FRIDAY, MARCH
 20.58.29 JOB06585  $HASP373 AJKB1#   STARTED - INIT 48   - CLASS P - SYS SYSB  
 20.58.29 JOB06585  IEF861I FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO AJKB1#
 20.58.29 JOB06585  IEF863I DSN = AJKB1.SOURCE.COBOL AJKB1# RC = 04            
 20.58.29 JOB06585 *IEF099I JOB AJKB1#   WAITING FOR DATA SETS
0
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 37731692
O.K.  This is not a security violation, its a "sharing" violation.  Meaning something else has the file open and in use.

Are you by chance browsing or editing the file in TSO?

In your JCL do you have DISP=OLD or DISP=SHR on the DD statement that has DSN=AJKB1.SOURCE.COBOL?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:ttist25
ID: 37731887
DISP=SHR

When I was doing some googling I thought I read something about a bug where a backup would hold open a data set?  Could this be related to that?
0
 
LVL 1

Author Closing Comment

by:ttist25
ID: 37732031
Thanks again Ggiltjr.  I'm thinking there was some other process holding the data set captive.  It ran fine a while ago.  

yay!
0
 
LVL 57

Expert Comment

by:giltjr
ID: 37732563
Yes, some other process was holding the file.  The system programmers should be able to find out what next time.

As for the bug and backup.  It depends on the backup software and how it works.  It's possible, but unlikely.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Tools on windows for exploring IBM z/OS session dump file 1 583
IBM Client Access 7.1 for Windows 3 1,371
AIX ODM 2 785
Problem to insert 6 369
Cloud-based technologies and services will continue to grow in popularity in 2017 thanks to the simple, scalable and cost-effective solutions they deliver. Here are three areas where cloud adoption is poised to really take off.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now