Andre BernsPage 111/24/2018

F:\mywebpages\authority.doc

DID YOU SET UP YOUR PROGRAMMING ENVIRONMENT???? (as posted on web page)

Substitute the notation 400?nn as follows

400= Your course code

?=Course section code

nn=The last two digits of your AS/400 user id

Did you create QCLSRC in your library ?? (DA400?nn)

If not type the following. CRTSRCPF DA400?nn/QCLSRC<cr> on the command line

And gave authority to your professor on all objects in your library?

If not do the following.

Enter GRTOBJAUT (F4) on the command line

Fill in the screen as follows for the authority list entry

Pay particular attention to the BOLDED entries.

Grant Object Authority (GRTOBJAUT)

Type choices, press Enter.

Object ...... DM344?nn Name, generic*, *ALL

Library ...... *libl Name, *LIBL, *CURLIB, *ALL...

Object type ...... *LIB *ALL, *ALRTBL, *BNDDIR...

Users ...... ABERNSName, *PUBLIC

+ for more values

Authority ...... *ALL *CHANGE, *ALL, *USE...

+ for more values

Authorization list ...... Name,

Reference object ...... Name

Library ...... *LIBL Name, *LIBL, *CURLIB

Reference object type . . . . . *OBJTYPE *OBJTYPE, *ALRTBL, *BNDDIR...

Replace authority ...... *NO *NO, *YES

Also for all the objects in the library

Grant Object Authority (GRTOBJAUT)

Type choices, press Enter.

Object ...... *ALL Name, generic*, *ALL

Library ...... DM344?nnName, *LIBL, *CURLIB, *ALL...

Object type ...... *ALL *ALL, *ALRTBL, *BNDDIR...

Users ...... ABERNSName, *PUBLIC

+ for more values

Authority ...... *ALL *CHANGE, *ALL, *USE...

+ for more values

Authorization list ...... Name, *NONE

Reference object ...... Name

Library ...... *LIBL Name, *LIBL, *CURLIB

Reference object type . . . . . *OBJTYPE *OBJTYPE, *ALRTBL, *BNDDIR...

Replace authority ...... *NO *NO, *YES

The 2 commands above should be sufficient to get you through the whole semester, You should re-execute the second one each time you create a NEW object in your library.

To grant authority to a specific professor or user the following two commands will do that nicely

First the library (to open the door)

Grant Object Authority (GRTOBJAUT)

Type choices, press Enter.

Object ...... DM344?nn Name, generic*, *ALL

Library ...... *libl Name, *LIBL, *CURLIB, *ALL...

Object type ...... *LIB *ALL, *ALRTBL, *BNDDIR...

Users ...... ABERNS Name, *PUBLIC

+ for more values

Authority ...... *ALL *CHANGE, *ALL, *USE...

+ for more values

Authorization list ...... Name, *NONE

Reference object ...... Name

Library ...... *LIBL Name, *LIBL, *CURLIB

Reference object type . . . . . *OBJTYPE *OBJTYPE, *ALRTBL, *BNDDIR...

Replace authority ...... *NO *NO, *YES

After which each object in your library must also be authorized.

Grant Object Authority (GRTOBJAUT)

Type choices, press Enter.

Object ...... *ALL Name, generic*, *ALL

Library ...... DM344?nn Name, *LIBL, *CURLIB, *ALL...

Object type ...... *ALL *ALL, *ALRTBL, *BNDDIR...

Users ...... ABERNS Name, *PUBLIC

+ for more values

Authority ...... *ALL *CHANGE, *ALL, *USE...

+ for more values

Authorization list ...... Name, *NONE

Reference object ...... Name

Library ...... *LIBL Name, *LIBL, *CURLIB

Reference object type . . . . . *OBJTYPE *OBJTYPE, *ALRTBL, *BNDDIR...

Replace authority ...... *NO *NO, *YES

You must also change your user profile to start the program STRJOB in library QGPL as the initial program.

Change User Profile (CHGPRF)

Type choices, press Enter.

Assistance level ...... *INTERMED *SAME, *SYSVAL, *BASIC...

Current library ...... DM344?nn Name, *SAME, *CRTDFT

Initial program to call . . . . STRJOB Name, *SAME, *NONE

Library ...... QGPL Name, *LIBL, *CURLIB

Initial menu ...... PROGRAM Name, *SAME, *SIGNOFF

Library ...... *LIBL Name, *LIBL, *CURLIB

Text 'description' ......

These changes are required to enable us to provide you with help when required and also to MARK your work.

If we are unable to access your work we will be unable to mark it and that would mean a FAILing grade!!