Getting CA TPX batch error "Close Parenthesis Required to End Parameter List" but all brackets are matched up.

Document ID : KB000004038
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

Ran example based upon sample member CB0VSRC(BUPDUENT), but changed VSELABEL to contain spaces in the actual application description text (Label):

 C
 C  THIS SAMPLE TPX BATCH ADMINISTRATION JOB ADDS
 C  SESSID TSO4 TO USERX01 THEN UPDATES THE SESSID TSO4
 C  WITH THE SUPPLIED INFORMATION.
 C
 ADD USERSESSION (USERX01 TSO4)
 UUSERX01 TSO4       ADDed
 UPDATE USERSESSION (USERX01 TSO4
        (UENTACB(TESTACB)
         UENTTNA(Y)
         UENTAPPL(NEWAPPL)
         UENTDATA(SESSIONDATA)
         UENTMODE(LOGMODE)
         UENTOPND(SWITCH)
         UENTOPTI(Y)
         UENTOPTK(Y)
         UENTOVAC(Y)
         UENTPASS(PSWD)
         UENTPJMP(1)
         UENTSCRP(TESTACL)
         UENTSCRT(TERMACL)
         UENTSTRT(Y)
         UENTTOUT(5555)
         UENTUID(USERID)
         UENTUPB1(PARM1)
         UENTUPB2(PARM2)
         UENTUPB3(PARM3)
         UENTUPB4(PARM4)
         UENTUPB5(PARM5)
         UENTUPB6(PARM6)
         UENTUPB7(PARM7)
         UENTUPB8(PARM8)
         UENTROW(01)
         VSESLABL(THIS IS A LABEL WITH SPACES)))
Close Parenthesis Required to End Parameter List 

All of the close parentheses have a matching opening parenthesis. What is the actual error?

Environment:
CA TPX for z/OS
Cause:

The first thing to check with this error is that each parenthesis (or bracket) is paired up.

Once this is ruled out, the most likely cause of this error is that spaces are part of a value that has not been enclosed within single quotes. This can cause words in the text to be interpreted as additional keywords. That is the case in this situation.

Resolution:

Sample CB0VSRC(BUPDUENT) is delivered with:

            VSESLABL(THISISALABEL)))

Once you introduce spaces, you need to code this with single quotes:

            VSESLABL('THIS IS A LABEL WITH SPACES')))