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

how i can use "Rs." as currency symbol in cobol


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

New User


Joined: 07 Mar 2005
Posts: 26

PostPosted: Mon Mar 07, 2005 4:39 am
Reply with quote

Anybody can explain, how i can use "Rs." as currency symbol in cobol
Back to top
View user's profile Send private message
mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1215
Location: India

PostPosted: Mon Mar 07, 2005 11:42 pm
Reply with quote

Dear JobSeeker(?),

You can Use "Rs" as your currency symbol in IBM Cobol (COBOL for OS/390 & VM) and Enterprise COBOL. But this facility is not available in OS/VS COBOL and VS COBOL II.

In the following example, the picture character "$" indicates that the currency sign "Rs." is to be used:


Code:
SPECIAL-NAMES.

 Currency Sign is "Rs." with Picture Symbol "$".
      .
      .
      .
  77  INRVALUE      Pic $$,$$9.99.
      .
      .
      .
      Display "India Money Value: " INRVALUE.


In this example, if INRVALUE contained 1500.00, the display output would be:

Invoice amount is Rs.1,500.00
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Structured Data and Nested Loops via ... COBOL Programming 0
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts Big Five Personality Test in COBOL - ... COBOL Programming 0
No new posts I wrote a Hallmark Movie Plot Generat... COBOL Programming 0
No new posts COBOL Text Adventure Engine for TK4- ... COBOL Programming 0
Search our Forums:


Back to Top