IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

XCOM:Sign getting convertd to brackets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
harshaputhraya

New User


Joined: 11 Apr 2005
Posts: 3

PostPosted: Tue Jul 03, 2012 1:21 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Tue Jul 03, 2012 2:30 pm
Reply with quote

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
View user's profile Send private message
harshaputhraya

New User


Joined: 11 Apr 2005
Posts: 3

PostPosted: Tue Jul 03, 2012 2:45 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jul 03, 2012 3:00 pm
Reply with quote

Re-read enrico's last paragraph. Make your fields unsigned, holding the sign seperately (+ or -) and you can use EBCDIC.
Back to top
View user's profile Send private message
harshaputhraya

New User


Joined: 11 Apr 2005
Posts: 3

PostPosted: Tue Jul 03, 2012 6:51 pm
Reply with quote

Hi Enrico,
Thanks for your suggestion. The solution worked for us!

Regards
Harsha
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. Missing Negative sign in COBOL COBOL Programming 6
No new posts SUSBSCRIPT WITH SIGN IN PIC CLAUSE COBOL Programming 3
No new posts Typing the CENT sign ¢ on mainframe,... All Other Mainframe Topics 2
No new posts Identify who, from where, sign on CIC... CICS 1
No new posts Subtract the ZD fields to provide neg... DFSORT/ICETOOL 4
Search our Forums:


Back to Top