Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 8593
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: 6966
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: 2502
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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us