Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Connect direct file corruption

Posted on 2010-09-02
3
Medium Priority
?
2,278 Views
Last Modified: 2013-12-09
I am sending a file using connect direct from a windows platform to a UINIX platform. I firstly found that we would get a small box in place of the carridge return which would throw out the fixed length file we then added an additional sysopts to the script and this has improved the file but i am still getting a few boxes t random points in the file.

Is anyone a connect direct expert and able to help?

here is mock copy of the script


SUBMIT MAXDELAY=UNLIMITED
SENDX PROCESS
SNODE=DEST
STEP1 COPY  
FROM (PNODE FILE= C:\MyFile.txt)
SYSOPTS="DATATYPE(BINARY) XLATE(NO)"
TO (SNODE FILE= /mailbox/test/myfile.txt)
SYSOPTS="DATATYPE=BINARY XLATE=NO"
PEND;  
QUIT;
0
Comment
Question by:LBGUC04
  • 2
3 Comments
 
LVL 26

Expert Comment

by:arober11
ID: 33598834
Once transfered you could run the file through: dos2unix else you might want to try changing the BINARY for ASCII on the SYSOPTS line, assuming "Connect direct" or whatever protocol your using is similar to FTP.

0
 
LVL 26

Expert Comment

by:arober11
ID: 33599099
Try:

SYSOPTS="DATATYPE=TEXT XLATE=YES"

If still no luck then then manual may be of some help, see: http://www.scribd.com/doc/36139478/NDM-RefGuide

As you haven't specified the code page / encoding of your Windows file or the character-set / code page on your Unix system I can only guess.

0
 

Accepted Solution

by:
LBGUC04 earned 0 total points
ID: 33609608
I have the answer now, the snode sysopts part of the C:D script should have read SYSOPTS=":DATATYPE=BINARY:XLATE=NO:" with the added colons
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cloud file services can fill many different roles for your business. Often, the use of cloud file services begins with employees using consumer products, like Dropbox, to share files with customers and each other. While sync-and-share can be an effe…
As a financial services provider, your business is impacted by two of the strictest federal regulations on record: the Sarbanes-Oxley Act and the Gramm-Leach-Bliley Act. Correctly implementing faxing into your organization to provide secure, real-ti…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Suggested Courses
Course of the Month12 days, 1 hour left to enroll

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question