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 receive and display '^' SYMBOL

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

New User


Joined: 22 Sep 2006
Posts: 17

PostPosted: Tue Mar 18, 2008 12:31 pm    Post subject: How to receive and display '^' SYMBOL
Reply with quote

Hi,

I 'm receiving a file from the Front end(java script) which has a symbol of '^' defined as a string variable.
ex: 'vinay^kumar'
we need to accept the above symbol and send the same back to front end.
but when it is received to mainframes the symbol changes to 'not' symbol.
and while trying to send the symbol back it shows up a blank space like
'vinay kumar', please let me know any method, could solve my issue.


Thanks,
Vinay
Back to top
View user's profile Send private message

vinay_care

New User


Joined: 22 Sep 2006
Posts: 17

PostPosted: Tue Mar 18, 2008 12:39 pm    Post subject: Reply to: How to receive and display '^' SYMBOL
Reply with quote

IT is defined with picture clause of X(25)
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1228
Location: Israel

PostPosted: Tue Mar 18, 2008 1:44 pm    Post subject:
Reply with quote

On the PC, data is in ASCII format. On the mainframe, it is in EBCDIC.
When a file is transferred from one platform to the other, the data is
translated from one format to the other.
All (well behaved) applications use a translation table, this allows for
customizing languages.
On the PC, the character "^" is '5E' in hexa (or 94 in decimal).
When it reaches the mainframe, it has been translated into (maybe) another hexa value,
which you have to find out and use instead of the character "^".
When transferred back to the PC, it is translated again, and the result
may be different from the original (usualy there are separate tables and they may not be synchronized).

Now, you have to find which value you have received (EDIT the dataset, view in hexa)
and you have to know which character to send that will show as a "^" (it's called a "caret" if I remember well) on the PC.

If it shows as a space on the PC after receiving the file, maybe the table translate all "unknown" characters to space ?
Back to top
View user's profile Send private message
vinay_care

New User


Joined: 22 Sep 2006
Posts: 17

PostPosted: Tue Mar 18, 2008 1:52 pm    Post subject: thanks
Reply with quote

Thanks its a very good info...will try to find the matching value
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
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm


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