Yes, I get the same error because it attempts to replace @SCRIPT... tag with the file contents which in turn leads to a script syntax error. Here is what you use as a workaround 1. Create new user defined statement using Tools/Script Library menu. Let's call it RunCube. It should have no parameters and no return value. In the code of this statement enter d:\\CognosData\\CubePoint\\automation.jal 2. In the code of the job running JobModify commands Replace line JobModify (428, "MSG_SCRIPT_CODE", "@@SCRIPT: .... with JobModify (428, "MSG_SCRIPT_CODE", "RunCube()" By the way, what are you trying to achieve? I am sure I can suggest a more efficient method if I only understand the goal. Please start a new message thread as this tread is already very long and as a result hard to read. : my entire code in that job is: ---------------------------------------------- : jobmodify (428, "MSG_SCRIPT", "Y") : jobmodify (428, "MSG_SCRIPT_TYPE", "JAL") : jobmodify (428, "MSG_START", "Y") : jobmodify (428, "MSG_FINISH", "Y") : jobmodify (428, "MSG_ACTIONS", "SS,FS") : JobModify (428, "MSG_SCRIPT_CODE", : "@@SCRIPT:d:\CognosData\CubePoint\automation.jal") : ---------------------------------------------- : do you get the same error when you try this?
|