SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
RunAndWait usage to run and SQR program

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
RunAndWait usage to run and SQR program
Author Message
Steve



Joined: 25 Jun 2002
Posts: 8

Post RunAndWait usage to run and SQR program Reply with quote

Hi,

I'm new to JAL,can someone help me with the RunAndWait syntax? Here is what I've got:

RunAndWait("E:\PSOFT-TST\HRMS751\SQRBINW\SQRW.EXE
E:\PSOFT-TST\HRMS751\SQR_CUSTOM\AGPER099 SYSADM/%ACCESSPSWD%@HR751DEV
-iE:\PSOFT-TST\HRMS751\SQR\;E:\PSOFT-TST\HRMS751\SQR_CUSTOM\
-ZIFE:\SQRPARMS\PSSQR.INI -mE:\SQRPARMS\ALLMAXES.MAX -XCB -XMB
-fC:\temp\ new_instance_number SCHEDULE SCHEDULE_PERSDATA", "", 0, ntpid)

As you can see the parameters passed to the command line a fairly long. Additionaly the value 'new_instance_number' is variable dynamically createdby an earlier SQL statement. Will the RunAndWait function recognize it as such?
The entries for SCHEDULE and SCHEDULE_PERSDATA define the database username and Run Control ID. This job is to run against a peoplesoft database.

Thanks very much!

Steve

Tue Jun 25, 2002 3:31 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: RunAndWait usage to run and SQR program Reply with quote

If you want ot insert the contents of new_instance_number variable you need to concatenate it with the rest of the command line

Dim( my_command, string )
ConcatEx( "E:\\PSOFT-TST\\HRMS751\\SQRBINW\\SQRW.EXE
E:\\PSOFT-TST\\HRMS751\\SQR_CUSTOM\\AGPER099 SYSADM/%ACCESSPSWD%@HR751DEV
-iE:\\PSOFT-TST\\HRMS751\\SQR\\;E:\\PSOFT-TST\\HRMS751\\SQR_CUSTOM\\
-ZIFE:\\SQRPARMS\\PSSQR.INI -mE:\\SQRPARMS\\ALLMAXES.MAX -XCB -XMB
-fC:\\temp\\ ", new_instance_number, " ", SCHEDULE, " ", SCHEDULE_PERSDATA, my_command )

RunAndWait( my_command, "", 0, ntpid )

Please note that I have changed all \ to \\. Please see Special ASCII characters topic in the online help for more info.

But you still have an issue with %ACCESSPSWD%. The value of the environment variable will not be inserted automatically. There are exists different methods to get the value of an environment variable. Now, for the test purposes replace it with the hard-coded value.

: Hi,

: I'm new to JAL,can someone help me with the RunAndWait syntax? Here is what
: I've got: RunAndWait("E:\PSOFT-TST\HRMS751\SQRBINW\SQRW.EXE
: E:\PSOFT-TST\HRMS751\SQR_CUSTOM\AGPER099 SYSADM/%ACCESSPSWD%@HR751DEV
: -iE:\PSOFT-TST\HRMS751\SQR\;E:\PSOFT-TST\HRMS751\SQR_CUSTOM\
: -ZIFE:\SQRPARMS\PSSQR.INI -mE:\SQRPARMS\ALLMAXES.MAX -XCB -XMB
: -fC:\temp\ new_instance_number SCHEDULE SCHEDULE_PERSDATA",
: "", 0, ntpid)

: As you can see the parameters passed to the command line a fairly long.
: Additionaly the value 'new_instance_number' is variable dynamically
: createdby an earlier SQL statement. Will the RunAndWait function recognize
: it as such?
: The entries for SCHEDULE and SCHEDULE_PERSDATA define the database username
: and Run Control ID. This job is to run against a peoplesoft database.

: Thanks very much!

: Steve

Tue Jun 25, 2002 5:05 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.