Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts Technical Support Engineer (DB2 on z/... Kenneth Barton Lasky Mainframe Jobs 0 Fri Aug 25, 2017 12:14 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us