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

mainframe ps file to unix box


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

New User


Joined: 07 Feb 2020
Posts: 2
Location: INDIA

PostPosted: Fri Feb 07, 2020 11:19 am
Reply with quote

Hi, I am sending compressed mainframe PS file through OPUT command to ZOS unix box.
After reaching over there it's getting uncompressed.
Please let me know how to keep it compressed.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1255
Location: Bamberg, Germany

PostPosted: Fri Feb 07, 2020 3:01 pm
Reply with quote

Have you tried with BINARY option specified?
Back to top
View user's profile Send private message
alpit

New User


Joined: 07 Feb 2020
Posts: 2
Location: INDIA

PostPosted: Fri Feb 07, 2020 3:48 pm
Reply with quote

Joerg.Findeisen wrote:
Have you tried with BINARY option specified?


yes tried with Binary , still not working

Code:
//STEPXX   EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN  DD *
  OPUT 'xxxxx.xxxx.xxx'  '/u/xxxxxxxx.test1.txt' -
  BINARY
//*
//*

Coded for you - please do it yourself next time
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Mon Feb 10, 2020 11:36 pm
Reply with quote

Hello,

How is the file compressed in Mainframe side? I mean, what methodology was used to compress the file and when you browse the PS file how does it look.

After transferring the file to Unix, how do you say that it is decompressed?
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Tue Feb 11, 2020 12:44 am
Reply with quote

alpit wrote:
Hi, I am sending compressed mainframe PS file through OPUT command to ZOS unix box.
After reaching over there it's getting uncompressed.
Please let me know how to keep it compressed.

There is no such thing as a "compressed" text file in *nix, not the z/OS pseudo Unix or a real Unix or Linux system.

The reason is compression may introduce the binary equivalent of the *nix end of line binary character, and that can cause problems reading the file.

Now vasanthz asked how the data set was originally compressed; this knowledge can help us deduce the most effective way to transfer the data to the *nix system. I think, too, we'd like to know what you intend to do with the data on the *nix system.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
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
Search our Forums:

Back to Top