|
Thanks, I'm working on it and got the qshell manual by ted holt. -----Original Message----- From: vhamberg@xxxxxxxxxxx To: midrange-l@xxxxxxxxxxxx Sent: Fri, 22 Sep 2006 10:55 PM Subject: Re: DSPAUT If the output file is an IFS file, it will get created automatically. And if there is a PF created using RCDLEN and with MAXMBRS(*NOMAX), a member can be named and will be created - you have to use path naming. So you could do ls > /qsys.lib/yourlib.lib/yourfile.file/newmbr.mbr and the names of objects in your current directory will be listed in member NEWMBR of YOURLIB/YOURFILE - and the member will be created if you used CRTPF YOURLIB/YOURFILE MAXMBRS(*NOMAX) RCDLEN(256) MBR(*NONE) The reason you have to create the PF is that a PF is considered a container or directory for the members, which are considered equivalent to the files in a directory when processed with path naming as in QShell. In QShell, if the directory did not exist, the command would not direct output to a file in a non-existent directory. ls with the -R option will recurse down the subdirectories. Adding the -l ("small ell") option will give you the object owner and the Unix-style authority - the RWX stuff - for owner, group, and public. Not exactly the same as DSPAUT, which also has iSeries-type stuff in it. There are some problems with this in large lists, IIRC, but it might give you some ideas. And do go get the QShell manual - it is under Shells under Programming somewhere in InfoCenter, I believe. HTH Vern At 10:09 AM 9/22/2006, you wrote:
Ok, you have to create the myfile on the AS400, it doesn't create automatically? -----Original Message----- From: michaelrtr@xxxxxxxxx To: midrange-l@xxxxxxxxxxxx Sent: Fri, 22 Sep 2006 10:58 AM Subject: Re: DSPAUT find fbtest/* -name '*' > /mydir/myfile These are essentially UNIX commands...there's a QSH reference in the Info Center. On 9/22/06, fbocch2595@xxxxxxx <fbocch2595@xxxxxxx> wrote:Ok, I have found the find command by typing it. I like to use help to get info about the cmd but there is no help for find when I type help. When I enter this; find fbtest/* -name '*' I get the list of files in dir fbtest. But what would the next command be to output the auth info to a file? Thanks -----Original Message----- From: BDietz@xxxxxxxxxx To: midrange-l@xxxxxxxxxxxx Sent: Thu, 21 Sep 2006 12:59 PM Subject: Re: DSPAUT So you are saying that if you type in QSH at the command line and type in "find" you get an error?? If so then you may have problems. What OS version? do you have Qshell installed: Resource ID Option Feature Description 5722SS1 30 5050 Qshell _____________________________ Bryan Dietz Aktion Associates "i want an i" midrange-l-bounces@xxxxxxxxxxxx wrote on 09/21/2006 12:18:23 PM: -> I don't understand this. There's no find command in qsh. -> -> -> -----Original Message----- -> -> you could create a small QSH shell script and put : -> -> -> for autfil in $(find aib/* -name '*'); -> do system "dspaut obj('"$autfil"') output(*print)"; -> done -> -> in there -> -> then submit it -> SBMJOB CMD(QSH CMD('/home/shellscript.sh')) -> -> you'll end up with one spool file with the results -> --
As an Amazon Associate we earn from qualifying purchases.
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.