how to run the dos commands from control-m job

Everything about Control-M links for Distributed Systems or for z/OS
Post Reply
User avatar
jayaprakash
Nouveau
Nouveau
Posts: 3
Joined: 17 Jun 2010 12:00

how to run the dos commands from control-m job

Post by jayaprakash » 17 Jun 2010 9:59

I am calling the vb script from the control-m job. Inside the vb script there are couple of copy and delete file operations. The copy file from local folder to other server using (\\nts0014\...).

I tried with option to map the drive and copy. It didn't work and hanging at the command.

Please help me out. Immediate help will be appreciated.

baralem

Post by baralem » 17 Jun 2010 5:54

Is control-m agent running as "LOCAL SYSTEM"? If you are copying file to another server the Agent account must have permissions to write in the remote server. Have you checked that? Can you log on with Control-m user account and run the job manually? Does it work that way?

regards
martin

User avatar
jayaprakash
Nouveau
Nouveau
Posts: 3
Joined: 17 Jun 2010 12:00

Post by jayaprakash » 19 Jun 2010 9:06

The control-m agent is running as local system and registed with the user 'GA_ProdJobtest'. I have setup the owner in the job also same.

I have login as user id 'GA_ProdJobtest' and executed the script directly and complete successfully.

Please help me out.

User avatar
jayaprakash
Nouveau
Nouveau
Posts: 3
Joined: 17 Jun 2010 12:00

Post by jayaprakash » 19 Jun 2010 9:14

Can you log on with Control-m user account and run the job manually? Does it work that way?
Here control-m user account you mean the account which i have used for the job setup or else.

baralem

Post by baralem » 19 Jun 2010 3:39

Can you change Control-M agent services account from "LOCAL SYSTEM" to "GA_ProdJobtest" and execute the job again?
Agent works different on windows and unix. Jobs on windows runs as "LOCAL SYSTEM" unless you set up "Logon as user":

Flag that specifies which user account is used for the services to log
on to.
Selected – Jobs are submitted with the permissions and
environment variables of the specified user.
Not selected – Jobs are submitted with the permissions and
environment variables of the local system account. Default.

regards.

User avatar
matom
Nouveau
Nouveau
Posts: 37
Joined: 29 Nov 2006 12:00
Location: Ile de France

Post by matom » 24 Jun 2010 9:50

Hello jayaprakash,

Define a Control-M/job with a ".bat" file in "File Name" field.
In the ".bat" file call the vb script.

Regards
Michel

User avatar
shahidsaif
Nouveau
Nouveau
Posts: 3
Joined: 06 Dec 2012 12:00
Contact:

Post by shahidsaif » 05 Jan 2013 3:43

matom wrote:Hello jayaprakash,

Define a Control-M/job with a ".bat" file in "File Name" field.
In the ".bat" file call the vb script.

Regards
Michel

with vb script?

Post Reply