Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do you find a file on the AS400?

8,815 views
Skip to first unread message

ciac...@my-dejanews.com

unread,
May 4, 1999, 3:00:00 AM5/4/99
to
How do you find a file on the AS400?

Is there a command similar to the unix find command.

Michael 713-594-0937 cell phone
800-404-1383 pager

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own

Pat Barber

unread,
May 4, 1999, 3:00:00 AM5/4/99
to
ciac...@my-dejanews.com wrote:
>
> How do you find a file on the AS400?
>
> Is there a command similar to the unix find command.

WRKOBJ *all/filename *file ..... will find it,if it's there...

Bill Wragg

unread,
May 4, 1999, 3:00:00 AM5/4/99
to
WRKOBJ *all/filename

will do the trick. You can also prompt it and select specific type of
objects.

Good Luck
Bill Wragg

<ciac...@my-dejanews.com> wrote in message
news:7gn8no$guu$1...@nnrp1.dejanews.com...


> How do you find a file on the AS400?
>
> Is there a command similar to the unix find command.
>

> Michael 713-594-0937 cell phone
> 800-404-1383 pager
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own


The contents of this message express only the sender's opinion.
This message does not necessarily reflect the policy or views of
my employer, Merck & Co., Inc. All responsibility for the statements
made in this Usenet posting resides solely and completely with the
sender.

Spud@Work

unread,
May 4, 1999, 3:00:00 AM5/4/99
to
What if the file-in-question is in either shared folders, or Home? I
haven't been able to find anything in that area.

Stephen Goodman
EarthLight Productions
http://www.earthlight.net


Bill Wragg wrote in message <7gni5u$q65$1...@merck.com>...

Graeme Dobie

unread,
May 5, 1999, 3:00:00 AM5/5/99
to

ciac...@my-dejanews.com wrote in message
<7gn8no$guu$1...@nnrp1.dejanews.com>...

>How do you find a file on the AS400?


If it's a *real* file you could run QUERY over file QSYS/QADBXREF but
*never* attempt to update it - not unless you want a dead system!

Don't know about the *other* objects

Tim

unread,
May 5, 1999, 3:00:00 AM5/5/99
to
Use the WRKOBJ command to find objects

WRKOBJ *ALLUSR/MY* *ALL


There are also object type specific commands of the form WRKxxx where XXX is
the object type

For example

WRKCMD *ALL/WRK* will find all the commands that begin with WRK
WRKF *ALLUSR/MYFILE* will find all files in user libraries that begin with
MYFILE

Hope this helps


<ciac...@my-dejanews.com> wrote in message
news:7gn8no$guu$1...@nnrp1.dejanews.com...

> How do you find a file on the AS400?
>

Thomas

unread,
May 5, 1999, 3:00:00 AM5/5/99
to
Graeme:

The DBM files in QSYS should not be used at all except by the system, if
possible. Instead, use the appropriate views from QSYS2. In this case, use
QSYS2/SYSTABLES.

Tom Liotta

In article <7gnvue$2mu$1...@supernews.com>,


"Graeme Dobie" <graeme...@writeme.com> wrote:
>
> ciac...@my-dejanews.com wrote in message
> <7gn8no$guu$1...@nnrp1.dejanews.com>...

> >How do you find a file on the AS400?
>

> If it's a *real* file you could run QUERY over file QSYS/QADBXREF but
> *never* attempt to update it - not unless you want a dead system!
>
> Don't know about the *other* objects
>
>

--
Tom Liotta
AS/400 systems programmer

Thomas

unread,
May 5, 1999, 3:00:00 AM5/5/99
to
Michael:

Keep in mind that even with WRKOBJ *ALL/*ALL *ALL, you have to have authority
to the object before you can find it.

Tom Liotta

In article <7gn8no$guu$1...@nnrp1.dejanews.com>,


ciac...@my-dejanews.com wrote:
> How do you find a file on the AS400?
>

> Is there a command similar to the unix find command.
>
> Michael 713-594-0937 cell phone
> 800-404-1383 pager
>

Nils

unread,
May 5, 1999, 3:00:00 AM5/5/99
to
How about command QRYDOCLIB?

nils

Spud@Work <sp...@earthlight.net> wrote in message news:7gnv32$gi5$1...@nnrp02.primenet.com...

Paul Nicolay

unread,
May 7, 1999, 3:00:00 AM5/7/99
to
Hi Stephen,

Just do a find on the AS/400 in Network neighborhood from the PC.

Regards,
Paul
------------------
Spud@Work wrote in message <7gnv32$gi5$1...@nnrp02.primenet.com>...


What if the file-in-question is in either shared folders, or Home? I
haven't been able to find anything in that area.

Stephen Goodman
EarthLight Productions
http://www.earthlight.net


Bill Wragg wrote in message <7gni5u$q65$1...@merck.com>...
>WRKOBJ *all/filename
>
>will do the trick. You can also prompt it and select specific type of
>objects.
>
>Good Luck
>Bill Wragg

The contents of this message express only the sender's opinion.

Spud@Work

unread,
May 7, 1999, 3:00:00 AM5/7/99
to
Not that simple, I'm afraid.

A find will only let itself be performed on Drives. When one gets a search
result from a mapped drive, it'll only show itself with respect to that
mapped drive. In short, it doesn't tell you actually where the file in
question is, except regarding the mapped drive.

Which of course doesn't tell me where 'home' is, on the '400. The idea I
had was that we could save outq's to home, making file transfer a lot
simpler and quicker.


Paul Nicolay wrote in message <7gubna$t95$1...@merck.com>...

0 new messages