Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
Is their a way to Create a Directory thru a CLLE PGM, on the IFS that only allow the user profile that creates it to view it? Not sure what parms to use in the DTAAUT and OBJAUT command to have this happen. Creating the directory in a CLLE program for the user to dump Spool files (Converted to PDF) into and then only allow that user to access them (Secured Directory). Hope this makes sense. Jeff
Dunno if by access you mean exclusive access?
Anyway, you probably already found the MD command that creates a directory and offers a bunch of parameters to set the authority so that the person that created the directory has access to it. You can use this command in any CLLE program.
If you then do not have access to the .pdf's created in the directory, probably the authority on the .pdf's is off. That would be something you set upon creation but can be altered later as well.
Good luck,
Paulster
Thank you. This works fow what I need
Jeff
What is the difference between MD and CRTDIR (I don't see any)???
None that I'm aware of. The help text on CRTDIR declares it similar to MD and MKDIR:
This command can also be issued using the following alternative
command names:
o MD
o MKDIR
The other way around Paulster; help on both MD and MKDIR says they are aliases for CRTDIR. All three of them state you can also issue the command using the other two as alternative names. Similar situation exists for RMVDIR and its aliases RD and RMDIR; there are other examples.
CRTDIR is a typical i OS type command name, consisting of a 3 letter verb and a 3 letter subject. If I remember correctly, MD is the MS-DOS equivalent, and MKDIR is from Unix. (Cf. QShell, which only has mkdir and rmdir, the Unix-type commands.)
Not being the youngest in my trade and having worked extensively with MS-DOS in my younger years, I reckon I'll sit this one out and stick to MD. :o)
Dunno if there's a strategy from IBM's side to let the obsolete commands die out in favor of 'the' preferred command - whichever they may be. With two referrals against one, help-text-wise - if that counts, CRTDIR seems to be the favorable command for future investments. Still, being a wee stubborn as you may have sensed, I'll stick to MD!