Cori,
Not a dumb question at all. Yes, one script sends all the reports to the
DAS, though it processes them one at a time. There is a script command
that you can use to send documents to the DAS (though they must be opened
first).
Here’s a little more information about how the setup works.
A text file is created containing a list of the reports to be sent to the
DAS. It contains one filename per line, like this:
report1.rep
report2.rep
report3.rep
The reports are kept in the UserDocs folder as usual.
The script is launched every 15 minutes by a scheduler. Actually, the
schedule launches Business Objects using the -script parameter that
causes BusObj to execute the script upon startup.
Here’s what the script does:
- Check for trigger file.
- If trigger file not found, write to log file and quit.
- If trigger file found, write to log file and delete trigger file.
- Open text file containing list of reports.
- Begin loop.
5a. Read a record from the file. If end of file, exit loop.
5b. Open report using name from record just read.
5c. Set execution parms (immediate/delay, priority, delivery/publish
method etc.).
5d. Send report to DAS.
5e. Close report and write to log file.
5f. End of loop.
- Write to log file and quit.
As you can see, I’m a big proponent of log files. They are very helpful
for solving problems that may occur, however they are not necessary.
The logic for execution parms is coded into the script, but it could also
be coded into the file. For example, if some reports are to be given
high priority and some normal, then the file could be:
report1.rep,high
report2.rep,normal
report3.rep,high
The script has to parse the record and process accordingly.
The nice thing about the setup is that if you want to add or delete
reports, all you need to do is change the text file and then add or
delete the report from the UserDocs directory.
Larry Rosenblum
Saama Technologies, Inc.
From: corinne.griswold@us.pwcglobal.com
Thanks for the info Larry! Does the one script send all of the reports at
once to the DAS? This is new to me so sorry if this is a dumb question. We
will also have a scheduler but I didn’t realize it could send a script to
BusObj. Interesting…
–Cori
Listserv Archives (BOB member since 2002-06-25)