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: 17
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: 17
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: 319
Location: Inside the SPEW (Cincinnati OH 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: 17
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
This topic is locked: you cannot edit posts or make replies. Writng matched records into output fi... DFSORT/ICETOOL 11
No new posts Compare the file record count percent... DFSORT/ICETOOL 4
No new posts compare two file to find position/dat... SYNCSORT 2
No new posts Converting a file from PD to display ... SYNCSORT 4
No new posts Record count of RECFM=U tape file DFSORT/ICETOOL 17
Search our Forums:

Back to Top