OK here is what I tried so far - along with the error msgs; any other ideas?
How can IBM's Advanced Job Scheduler not support parms with embedded space or embedded "*"?? It doesn’t seem possible - how could it be useful? I must be missing something simple here!
Thanks!
*********************** single quote *****************************************
(At least this experiment runs the job. The other examples below don’t even try to run.)
STRGRPJS JOB(HIJ544_LS TCMT544_LS 01) TIME(*IMMED)
PARM((HIJ544PRM1 'LS*ALLJSTONE'))
Cause . . . . . : Command to execute is: CALL PGM(HIJ544) PARM(LS*ALLJSTONE).
Message . . . . : Character 'A' not valid following string 'LS* '.
Cause . . . . . : A delimiter is missing between two values or a delimiter
that is not valid was found. Recovery . . . : Change the character that
is not valid or if a delimiter is missing insert one. More information on
delimiters can be found in the CL Reference manual.
--------------------------------------------------------------------
************************ two single quotes *************************************
STRGRPJS JOB(HIJ544_LS TCMT544_LS 01) TIME(*IMMED)
PARM((HIJ544PRM1 ''LS*ALLJSTONE''))
Character 'L' not valid following string ''' '.
Error found on *N command.
************************ three, 4, 5 single quotes give similar msg ***********************************
STRGRPJS JOB(HIJ544_LS TCMT544_LS 01) TIME(*IMMED)
PARM((HIJ544PRM1 '''LS*ALLJSTONE'''))
Quotes ('') in parameter data must appear in pairs.
STRGRPJS JOB(HIJ544_LS TCMT544_LS 01) TIME(*IMMED)
PARM((HIJ544PRM1 ''''LS*ALLJSTONE''''))
Character 'L' not valid following string '''' '.
Error found on *N command.
STRGRPJS JOB(HIJ544_LS TCMT544_LS 01) TIME(*IMMED)
PARM((HIJ544PRM1 ''''LS*ALLJSTONE'''''))
Character 'L' not valid following string '''' '.
A matching apostrophe not found.
A matching parenthesis not found.
Error found on *N command.
***************************** one double quote *******************************************************
STRGRPJS JOB(HIJ544_LS TCMT544_LS 01) TIME(*IMMED)
PARM((HIJ544PRM1 "LS*ALLJSTONE"))
Character '*' not valid following string '"LS '.
Error found on *N command.
****************************** should I try 6 quote marks :) ******************************************
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Brian Johnson
Sent: Wednesday, May 23, 2012 5:10 PM
To: Midrange Systems Technical Discussion
Subject: Re: Anyone use IBM's Advanced Job Scheduler? How to fire off a AJS job from CL using the STRGRPJS command with a parm
On Wed, May 23, 2012 at 12:14 PM, Stone, Joel <Joel.Stone@xxxxxxxxxx> wrote:
Trying to fire off an AJS job entry that I created using a parm. For some reason the AJS seems to be stripping off the quotes from the parm, which causes OS400 to parse the parm improperly.
Start Group using JS (STRGRPJS)
Type choices, press Enter.
. . . .
Parameter name . . . . . . . . > HIJ544PRM1 Name, *NONE
Parameter data . . . . . . . . > 'SB*ALLJSTONE'
Just a guess (not a user of AJS) but have you tried this:
Parameter data . . . . . . . . > '''SB*ALLJSTONE'''
--
Brian Johnson
brian.johnson.mn@xxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.