[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

668.0. "Print only doc's with attachments?" by KAOT01::J_PLUGERS (Too poor to pay attention) Mon May 11 1992 22:51

I have been trying for the last 2 hours, (unsuccesfully) to write a 
script that will scan all of a users documents in his file cabinet.

I have a user that needs to print all of his documents that have 
attachments.  There are about 1000 documents and about 150 of them
have attachments, anywhere from 1 attachment to 116 attachments...

I would like it to generate a list of all documents that contain
attachments, or preferably to print the entire contents of all the
documents that contain attachments.

An unusual request, perhaps, but I am not an ALL-IN-1 application
programmer, and am looking for advice from the experts.

Thanks in advance,

John Plugers

T.RTitleUserPersonal
Name
DateLines
668.1This will create the list.HOTAIR::MADDOXWhen in doubt, change itMon May 11 1992 23:4023
John,

The following command will create a list of all documents which have an
attachment:

        form auto select for cab$ with .att_doc nes "" do sel_style -
           .folder:32 .title/style=display

You can put the command above in a script and then run the script or
you could build a UDP with a ".fu " preceding the command.

The following form will put the list in a file instead of displaying it
on the terminal:

        form auto select for cab$ with .att_doc nes "" do sel_style -
           .folder:32 .title/style=file /list="DOCUMENTS.LIS"

You could build a script to print these documents, but I don't have time
to compose one now.

Hope this helps,

Joe
668.2I just can't get output to a file!KAOT01::J_PLUGERSToo poor to pay attentionTue May 12 1992 05:0920
Thanks for the helpful reply...

The display to the screen works just great, but the example in .1 to
list to a file does not work for me.  This is the script that I call

	FORM AUTO SELECT FOR CAB$ WITH .ATT_DOC NES "" DO SEL_STYLE -
	  .FOLDER:32 .TITLE/STYLE=FILE/LIST="OAUSER:DOC.LIS"

I get no errors.  I just don't seem to get any output file.  I ran it
with trace and saw it found all the docs with attachments but no sign
of an output file DOC.LIS

I found the script OA$DO:TMMONTH.SCP and the code is quite similar to
the example in .1

Am I doing something wrong?

Regards,

John. 
668.3Try a close_prior and a dump_cache?SANFAN::LESLIE_DAGreetings & SolutionsTue May 12 1992 05:180
668.4DUMP_CACHE did the trick.KAOT01::J_PLUGERSToo poor to pay attentionTue May 12 1992 14:315
    I added the DUMP_CACHE and it works like a charm.
    
    Thanks.
    
    John.