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
 

 

How to Use Pound Sign '£' in Cobol Program

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

New User


Joined: 01 Jun 2007
Posts: 16
Location: Chennai

PostPosted: Fri Aug 17, 2007 3:34 pm    Post subject: How to Use Pound Sign '£' in Cobol Program
Reply with quote

hi,

I have used the pound sign '£' inside cobol program.
But when it is written to output file , it is not getting displayed.
Even i am not able to see when i used in DISPLAY statement.

Please help me to resolve and provide sample code using this as soon as possible.

Thanks
Chinna.
Back to top
View user's profile Send private message

ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 175
Location: PUNE(INDIA)

PostPosted: Fri Aug 17, 2007 3:51 pm    Post subject: Reply to: How to Use Pound Sign '£' in Cobol Program
Reply with quote

'£' is represented in hex by X'B1'.
So try following code


Code:

MOVE X'B1'                 TO VARIABLE
DISPLAY VARIABLE


--Parag
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri Aug 17, 2007 3:51 pm    Post subject:
Reply with quote

I'd guess that the codepage in effect when you try to display it does not have it.....
Does the correct value show when you display with hex on?
Back to top
View user's profile Send private message
chinnarajr

New User


Joined: 01 Jun 2007
Posts: 16
Location: Chennai

PostPosted: Fri Aug 17, 2007 4:01 pm    Post subject: Pound Symbol Display
Reply with quote

Hi CICS guy,

yes. it got displayed as B1 in hex on mode in output file.

thanks
chinna
Back to top
View user's profile Send private message
chinnarajr

New User


Joined: 01 Jun 2007
Posts: 16
Location: Chennai

PostPosted: Mon Aug 20, 2007 1:34 pm    Post subject: Refresh
Reply with quote

Refresh
Back to top
View user's profile Send private message
ramfrom84

New User


Joined: 23 Aug 2006
Posts: 93
Location: chennai

PostPosted: Tue Aug 21, 2007 6:19 pm    Post subject:
Reply with quote

Mostly £ is used to dispay for Amount Filed (in Euro).
If u want to display as 123£ in the report,
First defined amt vaiable s9(9)
Then Defined filler after amt field with the value '£' it will be dispalyed after Amt Field.
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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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