Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
XCOM:Sign getting convertd to brackets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: XCOM:Sign getting convertd to brackets
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Tue Jul 03, 2012 2:30 pm    Post subject: Reply to: XCOM:Sign getting convertd to brackets
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    Post subject: Reply to: XCOM:Sign getting convertd to brackets
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Jul 03, 2012 3:00 pm    Post subject: Reply to: XCOM:Sign getting convertd to brackets
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    Post subject: Reply to: XCOM:Sign getting convertd to brackets
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts Hardcoded negative sign value in output scdinesh SYNCSORT 8 Fri Sep 08, 2017 5:28 am
No new posts IGZ0040S An invalid separate sign was... kishpra COBOL Programming 13 Sun Aug 02, 2015 2:41 am
No new posts How to modify the value using the sig... Vinay Pushpala PL/I & Assembler 3 Fri Feb 13, 2015 2:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us