× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Authorization list question
  • From: MacWheel99@xxxxxxx
  • Date: Fri, 26 Jan 2001 16:36:50 EST

> From: Lamart@aldon.com (Lamar Thomas)
>  
>  Hi all,
>  
>  We have an AS/400 and we keep a lot of PC files and folders on it.  I need
>  to add an Authorization list to EACH of thoes PC files and folders
>  (objects).  There are thousands fo them!  I was using "AS400 Operations
>  Navigator" to add an Authorization list called "Marketing" to each object
>  one at a time!  There has got to be a faster way, if so, can someone tell 
me
>  what it is?  Thanks for your help.
>  
>  Lamar Thomas

There has got to be an IBM command associated with what you are doing.
That IBM command can be put into a CL, in which the CL is called by something 
that knows the name of the object you want to do it to.

You can do a dump of objects to some *OUTFILE
You can write a program that will read the *OUTFILE one record at a time & 
then do something with some fields uniquely identifying object name & 
library, such as call a CL program that executes that IBM command to add the 
authorization list.

For one time execution this will work but not optimal usage of system 
resources - possible performance problem.

If you going to be doing this type of thing repetitively, it might be more 
efficient if the program that reads the *OUTFILE writes to a file a string of 
lines each of which is to execute that IBM command with this other object 
identified, then you import that file into source code.  

I used to do this kind of thing on S/34 eons ago but never learned how to do 
it in OS/400.  With S/34 the first few lines & last few lines of what was to 
become the executable object replicated the lines that ended up in a save 
file object from a source object, such that I got to an executable program 
from a simulated save, by figuring out how regular programs are saved & 
creating one in reverse ... restoring from a fabricated save object into a 
new working program.

I called it my software robot application because I was creating little 
programs that did something based on current file mixture reality then erased 
themselves from disk space, much like nano technology promises for the human 
bloodstream.

MacWheel99@aol.com (Alister Wm Macintyre) (Al Mac)
AS/400 Data Manager & Programmer for BPCS 405 CD Rel-02 mixed mode (twinax 
interactive & batch) @ http://www.cen-elec.com Central Industries of 
Indiana--->Quality manufacturer of wire harnesses and electrical 
sub-assemblies - fax # 812-424-6838

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.