Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Cobol - Passing value using verb VALUE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Thu Nov 25, 2010 5:30 pm    Post subject: Cobol - Passing value using verb VALUE
Reply with quote

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
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8666
Location: Back in jolly old England

PostPosted: Thu Nov 25, 2010 5:33 pm    Post subject: Re: Cobol - Passing value using verb VALUE
Reply with quote

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
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Thu Nov 25, 2010 5:47 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Thu Nov 25, 2010 5:47 pm    Post subject:
Reply with quote

how many single quotes to you expect to use?
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Thu Nov 25, 2010 5:49 pm    Post subject:
Reply with quote

I want to pass two single qutoes with a space in between the two quotes
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Nov 25, 2010 6:00 pm    Post subject: Reply to: Cobol - Passing value using verb VALUE
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Nov 25, 2010 6:01 pm    Post subject:
Reply with quote

And yes, please learn to use the BBCodes Tags.
Back to top
View user's profile Send private message
richard198

New User


Joined: 19 Nov 2010
Posts: 1
Location: cn.gz

PostPosted: Mon Nov 29, 2010 2:02 pm    Post subject: Re: Reply to: Cobol - Passing value using verb VALUE
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Nov 29, 2010 3:18 pm    Post subject:
Reply with quote

You're welcome. I just hope it works for OP as well.
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Wed Dec 01, 2010 1:01 pm    Post subject: Reply to: Cobol - Passing value using verb VALUE
Reply with quote

Hi Anuj,
THanks for the reply
where can i get the BBCodes Tags
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Wed Dec 01, 2010 1:05 pm    Post subject: Reply to: Cobol - Passing value using verb VALUE
Reply with quote

http://ibmmainframes.com/faq.php?mode=bbcode

Bill
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to convert 2 bytes into single by... pkmurali DB2 4 Fri May 25, 2018 1:41 pm
No new posts SYSADATA - COBOL - Structure displace... ganasrinivasan COBOL Programming 3 Thu May 24, 2018 9:45 pm
No new posts Cobol program till a given time or fo... ankita agarwal COBOL Programming 7 Fri May 18, 2018 2:24 pm
No new posts Getting an error from EZASOKET while ... vaibhav gs COBOL Programming 5 Thu May 17, 2018 9:21 pm
No new posts Compute statement with Cobol Z/os 5.2 Chetan Kumar COBOL Programming 2 Fri May 11, 2018 8:02 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us