IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Connnect Direct Sending Zip file from Zos to UNIX


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
netcrawler

New User


Joined: 31 Mar 2008
Posts: 27
Location: Kuala Lumpur

PostPosted: Tue Feb 12, 2019 3:25 pm
Reply with quote

I'm new to Connect Direct. Hope some experts can assist. I'm trying to send
a zip file from Zos to Unix system. From the CD documentation we need to send binary mode instead of text mode in order to be opened by Unix system. I'm using CODEC to compress the file before sending via connect direct to UNIX. However, I'm not sure where to code in SYSOPTS = ="DATATYPE=BINARY"

In my REXX script in Mainframe, I have coded in REXX script as follows but file unable to decomppress after sending to UNIX giving error message

(31) FILE FORMAT NOT ALLOWED

My CODES:

if trantyp = 'SEND' then
lpo.lp = 'STEP'fln1' COPY FROM(PNODE DSN=&INPUT'fln1' - '
else
lpo.lp = 'STEP'fln1' COPY FROM(SNODE DSN=&INPUT'fln1' - '

lp = lp + 1
l lpo.lp = 'SYSOPTS="DATATYPE=BINARY" DISP=SHR) CKPT=100M - '

lp = lp + 1


Can any Connect Direct experts help? Thanks
Back to top
View user's profile Send private message
netcrawler

New User


Joined: 31 Mar 2008
Posts: 27
Location: Kuala Lumpur

PostPosted: Mon Feb 25, 2019 12:37 pm
Reply with quote

Well Resolved
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Mon Feb 25, 2019 5:02 pm
Reply with quote

And, the resolution was?
Back to top
View user's profile Send private message
netcrawler

New User


Joined: 31 Mar 2008
Posts: 27
Location: Kuala Lumpur

PostPosted: Tue Feb 26, 2019 7:51 am
Reply with quote

Well, for sending file to unix just code:

lpo.lp = ' SYSOPTS=":DATATYPE=BINARY: :XLATE=NO:") - '
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top