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: 1210
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top