|
View previous topic :: View next topic
|
| Author |
Message |
harshaputhraya
New User
Joined: 11 Apr 2005 Posts: 3
|
|
|
|
Hi,
We are transmitting a file from mainframe to Linux server. When the file is sent to LINUX through XCOM the + and - signs are getting substituted with open brackets and closed brackets. Below are the examples.
BOOK-STOCK-QTY
+00018.00
-00168.00
-00336.00
-00505.00
-00674.00
-00168.00
-01340.00
-00336.00
+00015.00
-12770.00
-25989.00
-00496.00
-01657.00
-00010.00
are getting converted as -
000180{
001680}
003360}
005050}
006740}
001680}
013400}
003360}
000150{
127700}
259890}
004960}
016570}
000100}
XCOM parameters
TYPE=SEND
FILETYPE=FILE
FILEOPT=REPLACE
TESCODEST=#NNNNNN
CODE=EBCDIC
FILE=<remote server path>
LFILE=<mainframe file>
Please let me know if we need to add/change any XCOM parameter.
Regards
Harsha |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
You are sending data in <signed zoned> format,
the last byte ( rightmost ) contains the sign as ...
Cx ( x=0123456789 ) for positive numbers
Dx ( x=0123456789 ) for negative numbers
the data should be treated as BINARY, not EBCDIC
if You want to treat it as EBCDIC with the proper back and forth translation to/from ASCII
the numer representation should be <pure> chars, it means with the sigh as a separate character |
|
| Back to top |
|
 |
harshaputhraya
New User
Joined: 11 Apr 2005 Posts: 3
|
|
|
|
Hi Enrico,
Thanks for your reply. If I understand you reply, you are saying that we need to send the file in the binary (CODE=BINARY) from mainframe and in unix it needs to be processed as binary, not EBCDIC.
Regards
Harsha |
|
| Back to top |
|
 |
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
| Re-read enrico's last paragraph. Make your fields unsigned, holding the sign seperately (+ or -) and you can use EBCDIC. |
|
| Back to top |
|
 |
harshaputhraya
New User
Joined: 11 Apr 2005 Posts: 3
|
|
|
|
Hi Enrico,
Thanks for your suggestion. The solution worked for us!
Regards
Harsha |
|
| Back to top |
|
 |
|
|