× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.