Shellscript for running DQL commands
Comments
-
About your second requirement to use the result in an update statement, this is not possible with idql unless you can embed your select statement in your update statement somehow. If not, it would be better to use a scripting language which would use the DFC Java library (e.g. jython, groovy or jruby).
0 -
Hi everyone,
The query I am using is select count(*) from dm_user where user_name in (select arguments_values from dm_job_request where request_completed=1 and r_creation_date > DATE('09/01/2019 21:00:00','mm/dd/yyyy HH:MM:SS'))
But the constraint here is I have take the previous date (yesterday's) date while running the script using cron job, so I am having trouble understanding how I can take date input from unix and then use that in the dql query????
0 -
@Srnu said:
But the constraint here is I have take the previous date (yesterday's) date while running the script using cron job, so I am having trouble understanding how I can take date input from unix and then use that in the dql query????You can't: idql is not really suited for that. You would have to call idql for each DQL statement from a shell script, process the results (e.g. via sed or some other Unix utility), construct the next DQL statement and repeat. Very cumbersome and very slow. It's better to write your job in Java or use another scripting language like I wrote before.
If your only variable is yesterday's date, you can get it via the DQL function DATE(YESTERDAY).
0 -
Look at this link (same information in the Documentum Admin manual):
https://bonson.wordpress.com/documentum/system-administration-using-api/
0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 145 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management