IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Want to use apostrophe in a value of a variable


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ladieheartz

New User


Joined: 21 Jun 2006
Posts: 5

PostPosted: Fri May 18, 2007 9:42 am
Reply with quote

Hi there,
how shd i code if i want to use apostrophe in a value of a variable. ?
e.g:

03 FILLER PIC X(046)
VALUE 'BRANCH'S COUNTER.'.

please help. tq
Back to top
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Fri May 18, 2007 10:08 am
Reply with quote

Hi

Use the below format

Code:
 01 TESTVAR      PIC X(46) VALUE 'BRANCH''S SAI'.



Thanks
Sai
Back to top
View user's profile Send private message
ladieheartz

New User


Joined: 21 Jun 2006
Posts: 5

PostPosted: Fri May 18, 2007 11:34 am
Reply with quote

hi sai,
thanx for your help! icon_wink.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top