Connect Direct for copying files from Mainframes to UNIX

Hai Friends,

Please help me in providing unix shell script for pulling data from mainframe dataset to unix using connect direct (NDM).

Thanks in advance

Connect Direct is a file transfer software to get files from an IBM mainframe (OS/390, zOS, ...) to other systems, like Unix.

It has an extensive documentation and is fairly straightforward. I suggest you read the documentation first, any command shown in there is available for scripting too.

The only thing you have to take care of are the output formats the host uses. You will have to agree about these with the hosties (yes, this can be troublesome). Usually they will come up with some sort of JCL job card to use and once this is set up there is nothing to do manually any more.

Points to take care of are:

  • Encoding "EBCDIC" is not always the same so test intensively the EBCDIC<->ASCII conversion before going production
  • line delimiters like DOS/WINDOWS the host uses a different way to separate lines. Take care of that.
  • long lines Hosts usually operate on fixed-line-length files. If a line is longer than the allotted length, the host will insert a line break and put the overflowing characters to a new line, then add another line break and start the new line, etc.. From what should be this:

    text xxxxxxxxxx xxxxxxxxxx xxxxxxxxxx xxxxxxxxxx


    you would get this:

    text xxxxxxxxx x xxxxxxxxx x xxxxxxxxx x xxxxxxxxx x


    and you will have to use sed/awk/... to reformat the lines to what they were before.

I hope this helps.

bakunin