View previous topic :: View next topic
|
Author |
Message |
sridharbabu
New User
Joined: 09 May 2010 Posts: 3 Location: Hyderabad
|
|
|
|
hi
i am sridhar ,i am working for capgemini(pune). My doubt is how to display quotes in the BMS SCREEN
tell me code for following words in the bms coding
ex1: CAN'T
ex2: '1098'
EDITED: Do not use Color and Font unnecessarily. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
sridharbabu wrote: |
My doubt is how to display quotes in the BMS SCREEN
tell me code for following words in the bms coding
ex1: CAN'T
ex2: '1098' |
From what programming language (COBOL, Assembler, ???) are you trying to get the 'single quote' to apperar on the screen? |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Welcome to the Forum, Sridhar
If you mean the initial value in the DFHMDF macro, you have to follow the simple assembler rule: double the quote:
Code: |
DFHMDF INITIAL='CAN''T'
DFHMDF INITIAL='''1098''' |
|
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Use hex notation -
Code: |
03 WS-CANT PIC X(07).
03 WS-1098 PIC X(06).
MOVE ' CAN T' TO WS-CANT.
MOVE X'7D' TO WS-CANT (1:1)
MOVE X'7D' TO WS-CANT (5:1).
MOVE X'7D' TO WS-CANT (LENGTH OF WS-CANT:).
MOVE ' 1098' TO WS-1098.
MOVE X'7D' TO WS-1098 (1:1).
MOVE X'7D' TO WS-1098 (LENGTH OF WS-1098:).
|
Bill |
|
Back to top |
|
|
|