spacer
cornerspacercorner
Reply
Employee
mpolicarpio
Posts: 1,240
Registered: 05-11-2010

Passing arguments to xmoscrpt when running via jcl

To specify arguments to when submitting jcl to execute a xmscript, add the arguments to the PARM= line.  An example is provided.  The PARM line is in bold and each argument is separated by a comma.

 

//XMOSCRPT JOB (0000),'???????????',

//         USER=&SYSUID,

//         NOTIFY=&SYSUID,

//         CLASS="A",

//         MSGCLASS=O,

//         MSGLEVEL=(1,1),

//         REGION=0M

//*--------------------------------------------------------------------

//*

//* Run XMScript

//*

//* Copyright (c) 1997 - 2009 Metastorm Inc. All Rights Reserved.

//*

//*--------------------------------------------------------------------

//* Job SETUP instructions :

//*--------------------------------------------------------------------

//* 1> Change the JOB card as required by your installation standards.

//* 2> Change the PARM=' ' to the script name you want to execute

//* from the Registry

//* 3> Save your work

//* 4> Submit job

//*--------------------------------------------------------------------

//*

//SYSCNTL JCLLIB ORDER=MIM.V850.JCL

// INCLUDE MEMBER=JCLVARS

//*--------------------------------------------------------------------

//* XMOSCRPT

//*--------------------------------------------------------------------

//XMOSCRPT   EXEC PGM=XMOSCRPT,

//    PARM='helloWorld.xms,arg1,arg2,arg3'

//STEPLIB   DD DISP=SHR,DSN=&ENVHLQ..LOAD

//*          DD DISP=SHR,DSN=&SCEERUN * C RUNTIME

//          DD DISP=SHR,DSN=&SCSQANLE * MQ SCSQANLE DSN

//          DD DISP=SHR,DSN=&SCSQAUTH * MQ SCSQAUTH DSN

//          DD DISP=SHR,DSN=&SCSQSNLE * MQ SCSQAUTH DSN

//SYSPRINT  DD SYSOUT=*

//SYSOUT    DD SYSOUT=*

//DSNTRACE  DD SYSOUT=*

//CEEDUMP   DD SYSOUT=*

//OUTPUT    DD SYSOUT=*

//XMDIR     DD PATH='&DATAPATH/config/client.xml'

//* END OF XMOSCRPT.JCL

line spacer line
spacerFollow Metastorm on:
spacer Twitter YouTube Blog iTunes LinkedIn Metastorm Community Central, MC2
spacer Copyright © 2011 OpenText Corporation. All Rights Reserved.spacer About Metastormspacer Privacyspacer Legalspacer Site Mapspacer RSSspacer Contact Us
Microsoft Gold Certified Partner
Powered by Windows Azure
line spacer line