View previous topic :: View next topic
|
Author |
Message |
Shaldrin M Pereira
New User
Joined: 13 Jul 2012 Posts: 6 Location: INDIA
|
|
|
|
Hi
I am trying to pass parms to my cobol program via jcl
When I pass the parm '6W6ML2552' of length 9 bytes and display this parm in the program which is received via the linkage section, the parms is displayed as '6W6ML2552' itself.
But when I pass the parm '6&&802552' of length 9 bytes, the parm displayed in the program is '6&802552'.
I came to know from testing that the last postion in the 9 bytes is filled by spaces. Any way that I can pass '6&&802552' and get the same value in the program??? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
& is a special action character withing the IBM mainframe world.
Looking at that example, I would perhaps try to resolve the issue using a variable number of &'s to see what results I got. |
|
Back to top |
|
|
Shaldrin M Pereira
New User
Joined: 13 Jul 2012 Posts: 6 Location: INDIA
|
|
|
|
Hi
Thanx for the reply
Can u give me an example?? |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
If it takes two & in the parm-string to display one &, then try three & to display two &.
Or, try using hex-notation X'F65050F8F0F2F5F5F2'.
X'50' is an ampersand. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
From the MVS JCL Reference :
Code each apostrophe and ampersand that is part of the subparameter as two consecutive
apostrophes or ampersands. For example, code 3462&5 as PARM='3462&&5'.
However, if a subparameter contains a symbolic parameter, code a single ampersand. You can
code the symbolic parameter in apostrophes. |
|
Back to top |
|
|
|