Transfering ASCII files to z/OS USS using Connect Direct



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

Transfering ASCII files to z/OS USS using Connect Direct

Postby golemis » Sun Feb 21, 2021 2:24 pm

Hi,
My Unix(AIX) app produces a ASCII file that has a Windows delimiters (i.e. CR/LF x'0D'/x'0A'). This has to be transfered to a z/OS USS LPAR, using Sterling Connect Direct, where it is to be consumed by anothe app, which again expects it to have Windows delimiters (CR/LF)

I tried three different options in SYSOPTS:

1. :datatype=binary,xlate=no: This produces an ASCII file but convers the delimiters to Unix (NL x'0C') style instead of Windows stype (CR/LF)
2. :datatype=text,xlate=no: This produces an ASCII file but converts the delimiters to NAK (x'15') !!!
3. datatype=binary,xlate=yes: This produces an EBCDIC file, as expeceted

None of the above formats is accepted by the receiving app in z/OS USS. The closest option is the first one, and with a script using sed might solve th eproblem, but:

Is there any other option I could use in Connect Direct SYSOPTS that could preserve the file in ASCII Windows type and not convert it to ASCII Unix type?

Thank you, GG
golemis
 
Posts: 34
Joined: Wed Apr 04, 2018 8:13 pm
Location: London, UK
Has thanked: 10 times
Been thanked: 0 time

Re: Transfering ASCII files to z/OS USS using Connect Direct

Postby golemis » Mon Feb 22, 2021 6:32 pm

Sending application misled us, and now admits that the original file was built as a Unix type file and not DOS one. (I was always puzzled how Connect Direct could change the type of file during transmission, besides the :datatype=binary,xlate=no:)
golemis
 
Posts: 34
Joined: Wed Apr 04, 2018 8:13 pm
Location: London, UK
Has thanked: 10 times
Been thanked: 0 time


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post