Solved

Connect direct file corruption

Posted on 2010-09-02
3
2,069 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

With the withdrawal of support for Windows Server 2003 this summer, many clients face the issue of moving away from their 2003 installs. There are a few options out there that many people/companies are selling. But the clients I have, haven't wanted…
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now