Midrange News for the IBM i Community


Posted by: Jeff Masak
IT Developer
The Boldt Co
Appleton, WI
IFS Create Directory
has no ratings.
Published: 11 Feb 2013
Revised: 15 Feb 2013 - 1496 days ago
Last viewed on: 22 Mar 2017 (3425 views) 

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.

IFS Create Directory Published by: Jeff Masak on 11 Feb 2013 view comments(6)

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   

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: Paulster
Premium member *
Sweden and The Netherlands
Comment on: IFS Create Directory
Posted: 4 years 1 months 7 days 14 hours 46 minutes ago

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

Posted by: jmasak
Premium member *
Appleton, WI
Comment on: IFS Create Directory
Posted: 4 years 1 months 6 days 3 hours 32 minutes ago

Thank you.  This works fow what I need

Jeff

Posted by: clbirk
Premium member *
Comment on: IFS Create Directory
Posted: 4 years 1 months 5 days 23 hours 38 minutes ago

What is the difference between MD and CRTDIR (I don't see any)???

Posted by: Paulster
Premium member *
Sweden and The Netherlands
Comment on: IFS Create Directory
Posted: 4 years 1 months 5 days 17 hours 18 minutes ago

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                                                     

Posted by: DaleB
Premium member *
Reading, PA
Comment on: IFS Create Directory
Posted: 4 years 1 months 5 days 9 hours 32 minutes ago

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.)

Posted by: Paulster
Premium member *
Sweden and The Netherlands
Comment on: IFS Create Directory
Posted: 4 years 1 months 4 days 15 hours 50 minutes ago

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!