When I call CL by 3 parm. (‘ ‘) change to (‘)

5 pts.
Tags:
CL
CL Parameters
CL/400
When I call CL by use 3 parm like this command = CALL PGM(CTLMNUCUP) PARM('MENUA' '1' 'CALL PGMA ('')') In pgm it show Parm3 = 'CALL PGMA (') What the method I can solve? thk u.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi
You are sending this and it is being parsed as
CALL PGM(CTLMNUCUP) PARM(‘MENUA’ ‘1’ ‘CALL PGMA (”)’)
MENUA
1
CALL PGMA (
)

That’s because the ‘ ‘ in PGMA (‘ ‘) is interpreted by the parser as EndString space start string
The parser uses two single quotes, ‘, as the instruction insert a ‘ so
CALL PGM(CTLMNUCUP) PARM(‘MENUA’ ‘1’ ‘CALL PGMA (” ”)’)
gets parsed as
MENUA
1
CALL PGMA (‘ ‘)

That’s ‘CALL PGMA (” ”)’
Which the parser reads as
start-string CALL PAMA (Insert’ Space Insert’ ) End-String

Phil

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: