View previous topic :: View next topic
|
Author |
Message |
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
Hi,
I want to pass following value while defining variable:
value = 'INCLUDE COND=(1,8,CH,NE,C' ')'
but to ' i am getting error while compiling the code.
Kindly guide how to pass the value mentioned above |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
krunalbafna wrote: |
but to ' i am getting error while compiling the code. |
Well lucky old you, getting an error.
OK, so you have an error. Any chance you might actually want to tell us about it as unfortunately yesterday was psychic day. |
|
Back to top |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
Hi,
I want to pass following value while defining variable:
value = 'INCLUDE COND=(1,8,CH,NE,C' ')'
I am passing the following parameter in value clause as
VALUE = 'INCLUDE COND=(1,8,CH,NE,C''' ''')'
I am getting error while compiling the code.
Following is the error:
"')'" was invalid. Scanning was resumed at the next area "A" item, level-number, or the start of the next clause.
Kindly guide how to pass the value mentioned above |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
how many single quotes to you expect to use? |
|
Back to top |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
I want to pass two single qutoes with a space in between the two quotes |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Please post the COBOL variable definition you've used. Just a guess, if you've used " ' " (single inverted comma), try wraping the contentes in double-quotes:
Code: |
"INCLUDE COND=(1,8,CH,NE,C' ')" |
. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
And yes, please learn to use the BBCodes Tags. |
|
Back to top |
|
|
richard198
New User
Joined: 19 Nov 2010 Posts: 1 Location: cn.gz
|
|
|
|
Anuj Dhawan wrote: |
Please post the COBOL variable definition you've used. Just a guess, if you've used " ' " (single inverted comma), try wraping the contentes in double-quotes:
Code: |
"INCLUDE COND=(1,8,CH,NE,C' ')" |
. |
good ,i didn't know this b4 |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
You're welcome. I just hope it works for OP as well. |
|
Back to top |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
Hi Anuj,
THanks for the reply
where can i get the BBCodes Tags |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
Back to top |
|
|
|