View previous topic :: View next topic
|
Author |
Message |
srikant314
New User
Joined: 26 Oct 2016 Posts: 5 Location: INDIA
|
|
|
|
Hello team,
We have recently migrated to cobol 6.1 from 4.2 cobol version.
Now when I excute the below code I get a junk output. If anyone can assist me here.
Group variable declaration
Code: |
01 G.
05 h.
10 a pic x(10) Value 'Eh?'.
10 3_ pic 9 Value 5.
10 C-c pic x(10) Value 'See'. |
In the main section I have put in the below code --
Code: |
JSON GENERATE json-text FROM G
DISPLAY 'JSON ......:' json-text
|
output as below --
Code: |
JSON ……: # # # / ''' |
You should know by now that you should use the code tags to present code and data. I've done it for you this time. In future do it yourself. |
|
Back to top |
|
|
shyamkumar15
New User
Joined: 29 Jan 2020 Posts: 1 Location: India
|
|
|
|
You need to use MOVE FUNCTION DISPLAY-OF(FUNCTION NATIONAL-OF(GROUP VARIABLE (1:LENGTH OF GROUP) 1208)) to display in valid characters.
Also to use national variable you must compile with DBCS option. |
|
Back to top |
|
|
|