Re: ALLOW macro DEVNAME


[ Follow Ups ] [ Post Followup ] [ IOF Q&A Message Board ] [ FAQ ]

Posted by Frank Schubert on August 12, 2008 at 16:51:17:

In Reply to: Re: ALLOW macro DEVNAME posted by Robbie Gregory on August 12, 2008 at 10:41:46:

: : How would I code an ALLOW macro to allow a local printer, PRT1, to be displayed? I tried:
: : AL#47 ALLOW 1,2,DEVICES,DEVNAME,PRT1,GROUP=(GPRC,GPRCT)
: : to no avail.

: : Thanks

: I finally got something to work:

: AL#47 ALLOW 1,2,DEVICES,DEVCOMBO,XPR.*,GROUP=(GPRC,GPRCT)
: LIM#47 LIMIT 0,0,DEVICES,DEVNAME,NOT=PRT1,GROUP=(GPRC,GPRCT)

: If there is a better way, please advise.

Hi Robbie,

After speaking with you, I realized that you were trying to prevent the appearance of printers that the user does not have access to. You cannot control what appears on a list menu, such as the "IOF Device List Display" using ALLOW macros. But you can control this through the user of the LIMIT macro.

And your example:

AL#47 ALLOW 1,2,DEVICES,DEVCOMBO,XPR.*,GROUP=(GPRC,GPRCT)
LIM#47 LIMIT 0,0,DEVICES,DEVNAME,NOT=PRT1,GROUP=(GPRC,GPRCT)

Should do the trick. The ALLOW macro gives users in the GPRC and GPRCT group "1,2" access to all local printers. And the limit macro, with the access level of "0,0" will prevent any printer that is not PRT1 from appearing on the "IOF Device List Display".

To add another local printer to the list, such as PRT2, all you should have to do is change the LIMIT macro to:

LIM#47 LIMIT 0,0,DEVICES,DEVNAME,NOT=(PRT1,PRT2),GROUP=(GPRC,GPRCT)

Thanks.

Later.


Follow Ups:



Post a Followup

Name:

What is the MVS job entry subsystem supported by IOF?
We ask this question to reduce bogus postings to this bulletin board
Answer:

E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ IOF Q&A Message Board ] [ FAQ ]