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

PAX Z JCL for HFS Dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Zlata

New User


Joined: 08 May 2010
Posts: 5
Location: Russian Federation

PostPosted: Tue Jun 08, 2010 9:12 pm
Reply with quote

Hello!

I have hfs file - zzz.hfs and I need to compress it to pax.z format. Can you give a jcl sample of this procedure?

Thank you very much!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 08, 2010 9:25 pm
Reply with quote

a quick and dirty google search with PAX +BPXBATCH
returned quite a few hits...
for example
Code:
//P007393A JOB (11603300),'M.KLAESCHEN',
//         MSGCLASS=X,
//         MSGLEVEL=(1,1),
//         NOTIFY=&SYSUID.,
//         TIME=1440,
//         REGION=0K,
//         CLASS=1
//*
// SET Q=''''
// SET STDOUT=&Q./tmp/STDOUT.&SYSUID.&Q.
// SET STDERR=&Q./tmp/STDERR.&SYSUID.&Q.
//*
//UNTAR0   EXEC PGM=BPXBATCH,
//         PARM='PGM /bin/pax -r -z -f /u/p007393/lynx.tar.Z
//             -o from=ISO8859-1,to=IBM-1047'
//STDOUT   DD PATH='&STDOUT.',
//         PATHOPTS=(OWRONLY,OCREAT,OAPPEND),
//         PATHMODE=(SIRWXU)
//STDERR   DD PATH='&STDERR.',
//         PATHOPTS=(OWRONLY,OCREAT,OAPPEND),
//         PATHMODE=(SIRWXU)
//STDENV   DD DUMMY
//*


review and modify according to the manuals and your organization standards

nothing that You could not find Yourself
Back to top
View user's profile Send private message
Zlata

New User


Joined: 08 May 2010
Posts: 5
Location: Russian Federation

PostPosted: Tue Jun 08, 2010 9:33 pm
Reply with quote

Thank you for your reply. By the way, I always google before asking, so there is no need mentioning it. Besides it was my first question in the forum, but thanks, I guess, that it is not the right place for me, because of such answer, so I won't bother you with my simple google questions.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 08, 2010 9:37 pm
Reply with quote

I just pointed out how quickly I found the reply!
if You feel offended... too bad , I have nothing to excuse myself for icon_evil.gif

it would be very useful for You to read and meditate on
catb.org/~esr/faqs/smart-questions.html
on how to make the best out of asking for help

as ESR says... You did nothing to show that You had done something to help Yourself !
Back to top
View user's profile Send private message
Zlata

New User


Joined: 08 May 2010
Posts: 5
Location: Russian Federation

PostPosted: Tue Jun 08, 2010 9:58 pm
Reply with quote

I don't need just the first google jcl you saw, but the command to convert zzz.hfs into zzz.pax.z. Maybe it is evident to you, but not to me. The quality of the answer is more important, then just to get any answer. I guess, that's why the forums are for. And can I ask you better not answer at all, than pointing out on google, because it is really rude.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 08, 2010 10:02 pm
Reply with quote

Quote:
I don't need just the first google jcl you saw, but the command to convert zzz.hfs into zzz.pax.z.


review the starting question... You asked for jcl
and the sample posted was exhaustive of the issue

if You had asked for the pax syntax I would have pointed You to the manuals

I never implied that my reply would have been the final solution to Your issue,
after all this a help forum, not a do it for me, nor a manual reading and summarization service

but simply implied that googling You could have found more answer to satisfy Your need

and searching would have been more productive for a problem solving approach

Quote:
Maybe it is evident to you, but not to me.

it should be... it' s not me who qualifies himself as System Z Specialist

so You should know better, at least where to look for the proper docs
Quote:
but the command to convert zzz.hfs into zzz.pax.z.
then the places to look for the syntax of the command would be

z/OS V1R8.0 UNIX System Services User's Guide
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZA471/CCONTENTS?SHELF=BPXZSH81&DN=SA22-7801-09&DT=20070109132848

and
z/OS V1R8.0 UNIX System Services User's Guide
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZA580/CCONTENTS?SHELF=BPXZSH81&DN=SA22-7802-09&DT=20070503124658

no reason to rewrite what somebody else has already done
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 08, 2010 10:26 pm
Reply with quote

Is zzz.hfs a mount point or a directory or a file within a directory of HFS?
Back to top
View user's profile Send private message
Zlata

New User


Joined: 08 May 2010
Posts: 5
Location: Russian Federation

PostPosted: Tue Jun 08, 2010 10:29 pm
Reply with quote

Robert Sample wrote:
Is zzz.hfs a mount point or a directory or a file within a directory of HFS?
It is a mountpoint for directory /z for example. I have 3 such files: two are with automount option and reside on sms-managed volume and one is just ordinary hfs )
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 08, 2010 10:42 pm
Reply with quote

You cannot use pax on zzz.hfs -- although your OMVS or telnet session could use pax on the /z directory. zzz.hfs is an MVS file name and as such resides outside the Unix System Services infrastructure.
Back to top
View user's profile Send private message
Zlata

New User


Joined: 08 May 2010
Posts: 5
Location: Russian Federation

PostPosted: Tue Jun 08, 2010 10:44 pm
Reply with quote

Robert Sample wrote:
You cannot use pax on zzz.hfs -- although your OMVS or telnet session could use pax on the /z directory. zzz.hfs is an MVS file name and as such resides outside the Unix System Services infrastructure.

Okey, I see, that's why I couldn't find how to do that... Thank you )
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top