EXCESSIVE PARAMETER LENGTH IN THE PARM FIELD

General discussion on the JZOS batch launcher and toolkit
Post Reply
nicomey
Posts: 3
Joined: Thu May 19, 2005 5:41 am

EXCESSIVE PARAMETER LENGTH IN THE PARM FIELD

Post by nicomey »

Hi,
first of all thanks for the great jzos stuff.

I want to start a java program with many arguments. Therefore, when submitting my JCL, the parm parameter for the JZOSVM14 program exceeds the maximum length and the error message "EXCESSIVE PARAMETER LENGTH IN THE PARM FIELD" appears.

Are there other possibilities to pass long arguments to the running java program?

I would like to pass the arguments as a DD statement like:

//JAVA EXEC PGM=JZOSVM14, .......
//ARGS DD *
para1 value
para2 value
para3 value
....
/*
//STDENV DD ......

Many thanks,
NicoMey
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

There are two environment variables that control processing of arguments:

JZOS_MAIN_ARGS
JZOS_MAIN_ARGS_DD

In variable "JZOS_MAIN_ARGS" you can put additional arguments that will be added to your PARM= arguments.

In the variable "JZOS_MAIN_ARGS_DD" you can configure the DD name used to read additional main arguments. The default is JZOS_MAIN_ARGS_DD=MAINARGS

The main class name and arguments to it are read in the following order:

- PARM=
- the contents of the environment variable JZOS_MAIN_ARGS
- the contents of the file pointed to by JZOS_MAIN_ARGS_DD (by default MAINARGS)

So, your example will work by simply changing the ddname from ARGS to MAINARGS.
Guest

Post by Guest »

Hi,

Thanks a lot for your quick help. Now the program runs correctly.

Kind regards,
NicoMey
Post Reply