IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Execute Script on Windows Server After Xfer from Host


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

New User


Joined: 03 Mar 2006
Posts: 47
Location: Simpsonville, SC

PostPosted: Wed Aug 08, 2007 10:29 pm
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

Moderator Emeritus


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

PostPosted: Wed Aug 08, 2007 11:43 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Fetch data from programs execute (dat... DB2 3
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts access the last host command CLIST & REXX 2
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
Search our Forums:

Back to Top