

But after reading from IBM pages, I still don't know where to start with it. I have searched for solutions and I think it's about the ExecSH Before/ After Routine Activity. How can I make the shell script above as part of the job like Execute Command or some other stage. Is it because when passing variables from UserVariables Activity to Job Activity the variable will remove all the quotes? And how can I fix this?Ģ. I realized that maybe it failed to run the parallel job because it removed the single quote in hh and MI. In the parallel job, the log said: INPUT,0: The following SQL statement failed: select * from my_table where created_date between trunc(sysdate-1/48, hh) + 30*trunc(to_number(to_char(sysdate-1/48,MI))/30)/1440 and trunc(sysdate, hh) + 30*trunc(to_number(to_char(sysdate,MI))/30)/1440. Select * from my_table where created_date between trunc(sysdate-1) + 20/24 and trunc(sysdate) + 8/24 īut from the second iteration it failed with the Job Activity with the variable B below: select * from my_table where created_date between trunc(sysdate-1/48, 'hh') + 30*trunc(to_number(to_char(sysdate-1/48,'MI'))/30)/1440 and trunc(sysdate, 'hh') + 30*trunc(to_number(to_char(sysdate,'MI'))/30)/1440

Here is the flow: StartLoop Activity -> UserVariables Activity -> Job Activity -> Execute Command -> Endloop Activity Using the dsjob command you can start,stop,reset or run the job in validation mode.

Currently, I have a sequence job in DataStage.
