Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Execute Script on Windows Server After Xfer from Host

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
drowelf
Warnings : 1

New User


Joined: 03 Mar 2006
Posts: 39
Location: Houston, Texas

PostPosted: Wed Aug 08, 2007 10:29 pm    Post subject: Execute Script on Windows Server After Xfer from Host
Reply with quote

I'm trying to execute a CMD file on a server after successful transmission of the file from the Host to a PC via NDM. I've coded the run task on sucessful completion, but am having trouble with the syntax of getting the command to execute. The requirements are:

1) Execute a CMD file on a shared drive accessible to the Window Connect:Direct Server.
2) Pass 2 Parameters

This is my Run Task process statement from my Procedure

STEP003 RUN TASK (PGM=UNIX) SNODE -
SYSOPTS=\"&GC &LZ &ECSDSN"\

&GC is the name of the command \\to8pte91\cmd\Test.Cmd
&LZ is a share name \\tor8pte91\OutSRpts
&ECSDSN is a file name to process at the server

What I get in the NDM SS Display for the Run Task is:


Invalid keyword in sysopts

The get_next_sysopts_token() function has returned "unknown"
on one of the tokens in the sysopts.

Please refer to the Process Guide for correct syntax.


TIA
The process guide is no help what so ever.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Aug 08, 2007 11:43 pm    Post subject:
Reply with quote

Hello,

See if this link will help. Your SYSOPTS info is not formatted like some of what Sterling has in their doc.

http://www.sterlingcommerce.com/documentation/Processes/UnderstandingProcesses/SyntaxSYSOPTS.html

They do offer
Quote:
Because of operating system differences, SYSOPTS parameters and syntax vary by platform. This can be confusing when you create Processes with a text editor.

You must use the SYSOPTS syntax for the platform that is performing the work.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP Server and FTP.DATA vasanthz All Other Mainframe Topics 2 Wed Oct 12, 2016 11:49 pm
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts FTP from windows server into Mainfram... sathyajes All Other Mainframe Topics 24 Wed Jul 20, 2016 1:33 pm
No new posts problem on data conversion from windo... hkalhor2 Java & MQSeries 3 Tue May 17, 2016 12:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us