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
 
Want to use apostrophe in a value of a variable

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Want to use apostrophe in a value of a variable
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    Post subject:
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    Post subject:
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    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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm
This topic is locked: you cannot edit posts or make replies. Can a alphanumeric data be moved to a... nico_neoz COBOL Programming 10 Mon Oct 30, 2017 8:28 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

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