iSeries Data Transfer error

Posted on 2012-08-30
Last Modified: 2012-10-11
I have a new Windows Pro 64bit pc with iSeries Access for Windows 5.9 installed that is getting an error when an exist transfer request is ran. (.dft)

The user originally installed it with PC5250 access only.  After uninstalling and reinstalling you are able to run a transfer manually, but when it is double clicked you get the following error.
"The filename, directory name or volume label syntax is incorrect."  Then if you click OK a second error reads Invalid file type or corrupted.

The file is set to open with C:\Program Files (X86)\IBM\Client Access\cwbtf.exe

Any suggestions on what to try?
Question by:DCS12
    LVL 34

    Expert Comment

    by:Gary Patterson
    This usually happens when the filename, directory name or volume label syntax is incorrect in the saved DFT.

    Open up the saved DFT and make sure the name of the target file location is valid.

    - Gary Patterson

    Author Comment

    Yes it is valid.  If I open the Data Transfer for System i, then click File-->Open, browse to the same file it opens now problem and transfers no problem.  

    It is only when I double click it or try to run it from the 5250 window using STRPCCMD.
    LVL 34

    Expert Comment

    by:Gary Patterson
    Any chance your file associations are corrupted?  You said "DFT", and it should be "DTF", I think.  IF it is named with the wrong extension for some reason, that could certainly be a problem.

    If that is not the issue, then I suspect that it is just something funky in the way the command that is eventually running is getting composed.  

    Do you have the full command that you are trying to execute through STRPCCMD that you can post here?

    Looks like the path to the EXE has some spaces in it - does the path to the DTF or the target file have spaces in them?  Also, I've seen problems like this when the final command was just too long due to long pathnames.

    If so, just as a test, try moving the DTF to a simple, short folder name and changing the target filename to a simple folder name:

    md c:\testxfer

    then move the DTF to c:\testxfer, and update the DTF to put the target file in that same folder, and see if the same thing happens.

    You might also want to consider trying the RTOPCB / RFROMPCB commands instead, which are designed specifically as command line utilities, unlike CWBTF, which is a GUi utility.

    - Gary Patterson

    Author Comment

    The STRPCCMD is not the issue, because I get the same when I just run the .dtf by double clicking the file.

    I does have something to do with file associations.  Forgot to mention that somehow these files got changed and where trying to open with Excel and I had to change it back to CWBTF.      

    I have never used RTOPCB.  Can it transfer PF directly to Excel format?  This company has hundreds of these transfers already setup so it might be a lot of effort to change for one pc not acting right.
    LVL 34

    Accepted Solution

    Oh, okay.  Good to know.

    Open up regedit.exe
    Navigate to HKEY_CLASSES_ROOT\.dtf\ShellNew
    And post the current value of the Command string.  On my machine it is:

    C:\PROGRA~2\IBM\CLIENT~1\cwbtf.exe /r %2

    Since my Client Access folder is c:\program files(x86)\Client Access\.

    If all else fails, just remove Client Access, reboot, and reinstall - that will most likely properly re-register file associations.

    - Gary Patterson
    LVL 34

    Assisted Solution

    by:Gary Patterson
    While you are in regedit, verify the other cwbtf.exe entries:

    HKEY_CLASSES_ROOT\.dtt\ShellNew COMMAND = C:\PROGRA~2\IBM\CLIENT~1\cwbtf.exe /s %2
    HKEY_CLASSES_ROOT\AS400Transfer\Shell\Batch\Command default = C:\PROGRA~2\IBM\CLIENT~1\cwbtf.exe %1 /b
    HKEY_CLASSES_ROOT\AS400Transfer\Shell\Open\Command default = C:\PROGRA~2\IBM\CLIENT~1\cwbtf.exe %1
    HKEY_CLASSES_ROOT\AS400TransferFrom\Shell\Open\Command default = C:\PROGRA~2\IBM\CLIENT~1\cwbtf.exe %1
    HKEY_CLASSES_ROOT\AS400TransferTo\Shell\Open\Command default = C:\PROGRA~2\IBM\CLIENT~1\cwbtf.exe %1

    - Gary Patterson
    LVL 26

    Expert Comment

    For future reference, there is no "iSeries Access for Windows 5.9". Almost certainly you are referencing the version of the Personal Communications (PCCOMM) Workstation Program. PCCOMM is one component of iSeries Access.

    To see the iSeries Access version navigate through Start-> Programs-> IBM iSeries Access for Windows-> Properties.

    In addition to Gary's advice, you should also report here the version from Properties and the Service level that is shown next to it. Also, by "Windows Pro 64bit", you mean Windows XP Pro 64bit, right?

    LVL 16

    Expert Comment

    by:theo kouwenhoven
    Try to avoid using the short names like PROGRA~2,  because this is sequential named and depending on the sequence you installed programs, it could be different per user.

    Names with spaces also give problems with STRPCCMD

    To be sure use long names and if spaces are included, quote the command:
    C:\PROGRA~2\IBM\CLIENT~1\cwbtf.exe %1
    "C:\Program files\IBM\Client Access\cwbtf.exe %1"
    or in some cases as
    "C:\Program files\IBM\Client Access\cwbtf.exe" %1

    You als can include "C:\Program files\IBM\Client Access" in your path setting or
    make a substitute to this path with :

    SUBST Q:  "C:\Program files\IBM\Client Access"

    In the last case, you can use Q:\cwbtf.exe %1

    Author Closing Comment

    We never did resolve this, but thanks for the suggestions.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
    Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    728 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

    21 Experts available now in Live!

    Get 1:1 Help Now