One item to note right up front is that a report as displayed in OnDemand often is not a one to one relationship to the report that was loaded. As you know, a report can be split up when it is loaded into OnDemand so that a single report might be viewed as hundreds or thousands of online reports. If just one of the viewable reports needs to be deleted then all of the reports must be deleted. The deletion is by the load, not the viewed report.
So, that said, let's look at the options for the command to unload a report. First step is to get to the location of the command. It is located under ....\OnDemand for WinNt\bin on Windows and under ...../ondemand/bin on the Unix platforms. The command that will be used to do the unload is arsadmin unload. Let's look at the parameters for this command.
Usage: arsadmin unload [options]
Version: 8.4.0.0
unload Unload a LoadId from OnDemand
-g
-h
-p
-u
-L
-N Skip looking up the LoadId in System Log
-Q Continue if unable to find LoadId in System Log
For most unloads, the first 5 options are all that is needed. The hostname is not supposed to be required but I believe that, at least on Windows servers, it still is needed to get this to work. So the format for the unload is:
arsadmin unload -h localhost -u admin -p password -g AppGroupName -L 5011-1-0-2FAA-0-0
So all of that is pretty straight forward until you hit the load id. Where does that part come from? Well, that is an ID assigned to each report stream as it is added to the system. Not each viewable report but the report in the format it was in before loading. The load id is in the system log, but if you have been loading a lot of reports into this application group, finding it may be very difficult and could be a hit or miss option to know which one to remove.
But there is another much more accurate way to find it. Use the arsdoc query command to look up the report information based on the same criteria as is used to search for a report in the OnDemand client. And that will be the subject of the next post.
Hi Michael!
ReplyDeleteIm glad I found this blog!. I have a question does the arsadmin unload command works for iseries?.
Thanks
Sorry, I have been extremely busy of late and had not seen the comment on here. The arsadmin unload can be used on the iseries, but there are other command line tools that will work better. I will follow this up with more information later today.
ReplyDeleteMichael
Can you unload a single object in the loaded batch?
ReplyDeletePaul
The AS/400, one of IBM's greatest success stories, is widely installed in large enterprises at the department level, in small corporations, in government agencies, and in almost every industry segment. It succeeded another highly popular product, the System/36 and was itself based on a later, more sophisticated product, the System/38.
ReplyDeleteEven after you ran the arsadmin unload with the 5 parameters, the document still is available. Is it because the retention parameter is over writing the arsadmin command?
ReplyDeleteHow would I force the document be not available ?
Thanks
I'm looking for help while unloading hole folders - all documents in a folder - to have them back and ready to move to a other electronic archive. Thanks
ReplyDeleteThanks and I have a neat supply: Who House Renovation house renovation grants
ReplyDelete