Solved

Connect direct file corruption

Posted on 2010-09-02
3
2,199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

We all know how boring and exhausting it is to transfer huge web projects developed locally to a webserver simply via FTP. The File Transfer Protocol is a really nice solution if you need to transfer small amounts of files, but if you're plannin…
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…
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…
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…
Suggested Courses

627 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