On Sun, 26 Dec 2010, Schwarz, Barry A wrote: > If anyone has installed SAS 9.2 using a PC to read the DVDs followed by > using tar to prepare the "depot" for ftp to the mainframe, would you > please tell me how to get around the z/OS 1.11 tar limitation of 100 > characters in a path name. I have tried both -O and -X to no avail.
I am no mainframer so I may seem a bit pathetic here, but OTOH thanks to this perhaps sometimes I can "think the other way", kind of? Let's see if I really can :-). 1. There is open source utility called tarcust, which can do some manipulation to the tar file. It's a bit dated (y. 2001) and seems like there is no homepage for it. I've just downloaded it from [ http://archive.debian.net/en/sarge/all/tarcust ] which is software archive for my favourite Linux distro. It is written in Perl, which can be either good or bad for you (I can barely tolerate Perl, for example but maybe I am just not clever enough). Links to tgz source archive and Debian patches (those are probably useless in your case) are on the right. 2. If you have any kind of favourite scripting language like Python or Ruby, you can try to make use of their tar processing abilities. Once you can open tar from a script, perhaps you could extract the files using that script rather than limited tar that you have problems with? I imagine it would be possible to write a function, that makes consecutive directories, descends into them, making next in the path until it steps down and finally extracts the file where it belongs. Than go back and start over with next file. [ http://tarruby.rubyforge.org/ ] (I don't know how well this works, only scratched Ruby's surface for a while) [ http://docs.python.org/library/tarfile.html ] [ http://www.doughellmann.com/PyMOTW/tarfile/ ] Since I don't know Ruby too well, my prefs go to Python in this case. Especially that they seem to know about POSIX, USTAR and GNU tar formats, so they sound more promising. Perhaps it is possible to run JPython if you can run Java. I have never tried any of those myself, so be warned. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did "rm -rif" on the programmer's home ** ** directory. And then the C programmer became enlightened... ** ** ** ** Tomasz Rola mailto:tomasz_r...@bigfoot.com ** ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html