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: 6968
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 ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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