Re: Replicating z/VM documentation
The IBM Softcopy Librarian does a nice job of downloading bookshelves to a directory on my hard drive and doing the compares to tell me when there is an updated book or bookshelf... almost all shelves are available in .boo or .pdf I tend to download the PDF's - then when viewing my c:\books directory in windows explorer if you don't see the human readable title just right click on the Name column and select Title this will add a column with the human readable title extracted from the windows extended file properties... no need to rename or be inconsistent. OTOH - if you like the .boo files they do not have the title metadata supplied, maybe IBM could fix that. But if your using .boo files your probably also using the softcopy reader/Shelf Organizer which will also show you the real title. Eric Spencer Sr.Software Developer p: 512.241.7313 | m: 512.470.9807 | f: 512.343.9538 espen...@neonsoft.com What is zPrime? Find out at www.zprime.com or just ask us! -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Brian Nielsen Sent: Tuesday, July 14, 2009 12:11 PM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: Replicating z/VM documentation I have a couple quick and dirty KEDIT macros that I run against the HTML index page to build COPY commands that will copy the cryptic file name from the CD to another drive and name it as the manual number and title (taking care of special characters in the process). Brian Nielsen On Mon, 13 Jul 2009 08:21:52 -0600, Scott Rohling scott.rohl...@gmail.com wrote: As I am often in locations where internet access is either not possible or not allowed, I really like to keep the official z/VM documentation on my laptop. I know there are web pages with all the PDF files, etc.. But I have issues using them: - The PDF files are named with the manual number, rather than a human readable title. I usually end up renaming them when I download (and am often inconsistent). - I'm never sure I have the 'latest and greatest' - The process is entirely manual So I'm wondering what other people do to keep local copies.. It would be nifty to have something that checked the web pages for newer copies of the pdf files and did 'wget' or something on them - and was smart enough to suck the title out of the web page as well and use it to name the file locally. But - maybe there are other solutions I'm not aware of? Anybody have a nice way to deal with 'replicating' the z/VM documentation? (if your a Notes user, you'll understand the 2nd verb) p.s. Hmmm.. I bet I can use wget with the right incantation and get the whole website to my laptop along with PDFs.. but not sure it handles checking for changes? Scott
Re: Replicating z/VM documentation (Offensive Word Found In Message)
On 7/13/2009 at 10:21 AM, Scott Rohling scott.rohl...@gmail.com wrote: -snip- It would be nifty to have something that checked the web pages for newer copies of the pdf files and did 'wget' or something on them - and was smart enough to suck the title out of the web page as well and use it to name the file locally. -snip- p.s. Hmmm.. I bet I can use wget with the right incantation and get the whole website to my laptop along with PDFs.. but not sure it handles checking for changes? If you use the -N switch for wget, it will only download newer versions, or versions with a different file size. Not all web servers are helpful about providing the correct file size. For a starter script, try this: for file in * do base=$(echo $file | sed -e 's/\(sg..\).*$/\1/' -e 's/\(redp\).*$/\1/') echo $file $base wget -O - http://www.redbooks.ibm.com/abstracts/$base.html 21 | grep -i ^'title' | sed -e 's/titleIBM Redbooks . //' -e 's/\/title//' | tr '/' '-' | tr -s echo done Run it in a directory that has a bunch of Redbooks in it., and pipe the output to a file. I did find one Redbook that lots of others reference, and it still exists, but the abstract no longer exists for some reason: SG24-6344. Mark Post
Re: Replicating z/VM documentation
I really want a Linux-capable solution (sorry -- get cygwin if you're stuck with windows - or better - run Virtualbox and a Linux image - free free free ;-) I'm thinking I can get what I want by using a script to: - do a wget on the z/VM PDF files page - Parse between the h4/h4 - Parse between first table/table after h4's - Parse the tr statements to yank out the pdf URL and the human readable title - Do wget with -N option for the pdf files (maybe pass the script the group(s) you want and the dir to store it in?) - Create a vmpdf.html file that looks like the z/VM PDF page - but contains local links to the pdf files I'm about 100 times better at rexx than at bash - so maybe I'll attempt this as a rexx script and leave it to someone else to 'bash it'. Of course, it's all dependent on the basic layout of the PDF web page staying consistent - so maybe an exercise in futility.. won't be the first time. Scott On Mon, Jul 13, 2009 at 9:35 AM, Rob van der Heij rvdh...@gmail.com wrote: On Mon, Jul 13, 2009 at 4:21 PM, Scott Rohlingscott.rohl...@gmail.com wrote: p.s. Hmmm.. I bet I can use wget with the right incantation and get the whole website to my laptop along with PDFs.. but not sure it handles checking for changes? The first speed-up is to block all the surfing statistics that IBM has added to the various pages. I measured it to be more than 50% of the time it takes to load the page (whether I sit in Europe or in the US, no excuses there). I modified the HTML page that lists all the books so that it points to the local copies of the PDFs for the ones that I have here handy. In fact, I even have the copy of the monitor record layout local on my thinkpad, but that may not be something everyone else needs that often ;-) And I'll do it again with next release (if any). Rob
Re: Replicating z/VM documentation
What would be really nice is to be able to download the actual Infocenter as you can do with some other products such as WebSphere. You need to downlo ad the IEHS (IBM Eclipse Help System) and a couple of plugins and then the Infocenter for the product. I do this on both Windows and Linux and it sa ves me a lot of time. See: http://www-01.ibm.com/software/webservers/appserv/was/library/v70/ndss/in dex.html Seb.
Re: Replicating z/VM documentation
On Tue, Jul 14, 2009 at 12:47 PM, Sebastian Weltonmf...@welton.de wrote: What would be really nice is to be able to download the actual Infocenter as you can do with some other products such as WebSphere. You need to download the IEHS (IBM Eclipse Help System) and a couple of plugins and then the Infocenter for the product. I do this on both Windows and Linux and it saves me a lot of time. See: I can understand the value of some cross-linked structure like wikipedia or infocenter when the information you want is not necessarily structured in a linear manner. But when I am reading the installation instructions for a product on such an infocenter thing, it really feels like someone is holding the book for me and I need to tell them when to turn pages. It's amazing how much read ahead one does when reading. -Rob
Re: Replicating z/VM documentation
I have a couple quick and dirty KEDIT macros that I run against the HTML index page to build COPY commands that will copy the cryptic file name from the CD to another drive and name it as the manual number and title (taking care of special characters in the process). Brian Nielsen On Mon, 13 Jul 2009 08:21:52 -0600, Scott Rohling scott.rohl...@gmail.com wrote: As I am often in locations where internet access is either not possible or not allowed, I really like to keep the official z/VM documentation on my laptop. I know there are web pages with all the PDF files, etc.. But I have issues using them: - The PDF files are named with the manual number, rather than a human readable title. I usually end up renaming them when I download (and am often inconsistent). - I'm never sure I have the 'latest and greatest' - The process is entirely manual So I'm wondering what other people do to keep local copies.. It would be nifty to have something that checked the web pages for newer copies of t he pdf files and did 'wget' or something on them - and was smart enough to suck the title out of the web page as well and use it to name the file locall y. But - maybe there are other solutions I'm not aware of? Anybody have a nice way to deal with 'replicating' the z/VM documentatio n? (if your a Notes user, you'll understand the 2nd verb) p.s. Hmmm.. I bet I can use wget with the right incantation and get th e whole website to my laptop along with PDFs.. but not sure it handles checking for changes? Scott
Re: Replicating z/VM documentation
As I need a regular IBM Manual, I read it from the CD/DVD the first time and while I have it open, I use the File/SaveAs function to put a copy in my own manuals folder with a name I can recognize. Then when I am finished with it, I email a copy of that newnamed pdf to my home address to populate my home copy of manuals. Some levels of Windows let you have a Title column in the file list window and ALL IBM manuals have a proper title tag in their pdf copy. I just haven't played with it enough to have it on ONLY for the directories I want. /Tom Kern Scott Rohling wrote: As I am often in locations where internet access is either not possible or not allowed, I really like to keep the official z/VM documentation on my laptop. I know there are web pages with all the PDF files, etc.. But I have issues using them: - The PDF files are named with the manual number, rather than a human readable title. I usually end up renaming them when I download (and am often inconsistent). - I'm never sure I have the 'latest and greatest' - The process is entirely manual So I'm wondering what other people do to keep local copies.. It would be nifty to have something that checked the web pages for newer copies of the pdf files and did 'wget' or something on them - and was smart enough to suck the title out of the web page as well and use it to name the file locally. But - maybe there are other solutions I'm not aware of? Anybody have a nice way to deal with 'replicating' the z/VM documentation? (if your a Notes user, you'll understand the 2nd verb) p.s. Hmmm.. I bet I can use wget with the right incantation and get the whole website to my laptop along with PDFs.. but not sure it handles checking for changes? Scott
Re: Replicating z/VM documentation
I find it just as frustrating when I look at the manuals via the internet and the pdf (my preference over html) has a title of HCSK5B30 or something as useful as that. Jim Scott Rohling wrote: --00151757444e2547a6046e970b6f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit As I am often in locations where internet access is either not possible or not allowed, I really like to keep the official z/VM documentation on my laptop. I know there are web pages with all the PDF files, etc.. But I have issues using them: - The PDF files are named with the manual number, rather than a human readable title. I usually end up renaming them when I download (and am often inconsistent). - I'm never sure I have the 'latest and greatest' - The process is entirely manual So I'm wondering what other people do to keep local copies.. It would be nifty to have something that checked the web pages for newer copies of the pdf files and did 'wget' or something on them - and was smart enough to suck the title out of the web page as well and use it to name the file locally. But - maybe there are other solutions I'm not aware of? Anybody have a nice way to deal with 'replicating' the z/VM documentation? (if your a Notes user, you'll understand the 2nd verb) p.s. Hmmm.. I bet I can use wget with the right incantation and get the whole website to my laptop along with PDFs.. but not sure it handles checking for changes? Scott --00151757444e2547a6046e970b6f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable As I am often in locations where internet access is either not possible or = not allowed, I really like to keep the official z/VM documentation on my la= ptop.=C2=A0=C2=A0 I know there are web pages with all the PDF files, etc..= =C2=A0=C2=A0 But I have issues using them:br br-=C2=A0 The PDF files are named with the manual number, rather than a h= uman readable title.=C2=A0=C2=A0 I usually end up renaming them when I down= load (and am often inconsistent).br-=C2=A0 I#39;m never sure I have the = #39;latest and greatest#39;br -=C2=A0 The process is entirely manualbrbrSo I#39;m wondering what oth= er people do to keep local copies..=C2=A0=C2=A0 It would be nifty to have s= omething that checked the web pages for newer copies of the pdf files and d= id #39;wget#39; or something on them - and was smart enough to suck the t= itle out of the web page as well and use it to name the file locally.=C2=A0= =C2=A0 But - maybe there are other solutions I#39;m not aware of?br brAnybody have a nice way to deal with #39;replicating#39; the z/VM doc= umentation? (if your a Notes user, you#39;ll understand the 2nd verb)br= brp.s.=C2=A0 Hmmm..=C2=A0 I bet I can use wget with the right incantation = and get the whole website to my laptop along with PDFs..=C2=A0=C2=A0 but no= t sure it handles checking for changes?=C2=A0 br brScottbr --00151757444e2547a6046e970b6f-- -- Jim Bohnsack Cornell University (972) 596-6377 home/office (972) 342-5823 cell jab...@cornell.edu
Re: Replicating z/VM documentation
Hello Scott, If your laptop is running Windows, you could use Softcopy Librarian which queries a master list of z/VM publications (those that are found on the CD or DVD publication deliverables) and compares the list to your local repository. It can distinguish between publications that have been updated and those that have not and will allow you to download any number of publications (one to all) for a given shelf (library) or product. As you might have guessed, it can also download shelf and index files (.bks, .bki, and .xks) for use on the host or with Softcopy Reader for Windows or Linux. Take a look at the following site for Softcopy Librarian download information: http://www-01.ibm.com/support/docview.wss?doc=4000640org=SWrs=4 Thanks! Michael J. Forte z/OS Storage ID and POK Softcopy Support Software Engineer, System z Information Solutions 58HA IBM Poughkeepsie, New York mjfo...@us.ibm.com Office: 845-435-9062, T/L: 295-9062 Fax: 845-432-9405 Building 052-1, B09 2455 South Road, Poughkeepsie, NY 12601 Often those who work the hardest are the luckiest... From: Scott Rohling scott.rohl...@gmail.com To: IBMVM@LISTSERV.UARK.EDU Date: 07/13/2009 10:23 AM Subject: Replicating z/VM documentation Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU As I am often in locations where internet access is either not possible or not allowed, I really like to keep the official z/VM documentation on my laptop. I know there are web pages with all the PDF files, etc.. But I have issues using them: - The PDF files are named with the manual number, rather than a human readable title. I usually end up renaming them when I download (and am often inconsistent). - I'm never sure I have the 'latest and greatest' - The process is entirely manual So I'm wondering what other people do to keep local copies.. It would be nifty to have something that checked the web pages for newer copies of the pdf files and did 'wget' or something on them - and was smart enough to suck the title out of the web page as well and use it to name the file locally. But - maybe there are other solutions I'm not aware of? Anybody have a nice way to deal with 'replicating' the z/VM documentation? (if your a Notes user, you'll understand the 2nd verb) p.s. Hmmm.. I bet I can use wget with the right incantation and get the whole website to my laptop along with PDFs.. but not sure it handles checking for changes? Scott
Re: Replicating z/VM documentation
I download all the manuals when we go to a new release, and create a shortcut/alias for each one with it's real title (or as close as I can get with some special characters). This way I have a name that means something to me, but also the links work between the manuals. Robert Reuscher Network Software Development/Support (214) 477-7091 -Original Message- From: Jim Bohnsack jab...@cornell.edu Sent: Monday, July 13, 2009 9:45 AM To: IBMVM@LISTSERV.UARK.EDU IBMVM@LISTSERV.UARK.EDU Subject: Re: Replicating z/VM documentation I find it just as frustrating when I look at the manuals via the internet and the pdf (my preference over html) has a title of HCSK5B30 or something as useful as that. Jim Scott Rohling wrote: --00151757444e2547a6046e970b6f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit As I am often in locations where internet access is either not possible or not allowed, I really like to keep the official z/VM documentation on my laptop. I know there are web pages with all the PDF files, etc.. But I have issues using them: - The PDF files are named with the manual number, rather than a human readable title. I usually end up renaming them when I download (and am often inconsistent). - I'm never sure I have the 'latest and greatest' - The process is entirely manual So I'm wondering what other people do to keep local copies.. It would be nifty to have something that checked the web pages for newer copies of the pdf files and did 'wget' or something on them - and was smart enough to suck the title out of the web page as well and use it to name the file locally. But - maybe there are other solutions I'm not aware of? Anybody have a nice way to deal with 'replicating' the z/VM documentation? (if your a Notes user, you'll understand the 2nd verb) p.s. Hmmm.. I bet I can use wget with the right incantation and get the whole website to my laptop along with PDFs.. but not sure it handles checking for changes? Scott --00151757444e2547a6046e970b6f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable As I am often in locations where internet access is either not possible or = not allowed, I really like to keep the official z/VM documentation on my la= ptop.=C2=A0=C2=A0 I know there are web pages with all the PDF files, etc..= =C2=A0=C2=A0 But I have issues using them:br br-=C2=A0 The PDF files are named with the manual number, rather than a h= uman readable title.=C2=A0=C2=A0 I usually end up renaming them when I down= load (and am often inconsistent).br-=C2=A0 I#39;m never sure I have the = #39;latest and greatest#39;br -=C2=A0 The process is entirely manualbrbrSo I#39;m wondering what oth= er people do to keep local copies..=C2=A0=C2=A0 It would be nifty to have s= omething that checked the web pages for newer copies of the pdf files and d= id #39;wget#39; or something on them - and was smart enough to suck the t= itle out of the web page as well and use it to name the file locally.=C2=A0= =C2=A0 But - maybe there are other solutions I#39;m not aware of?br brAnybody have a nice way to deal with #39;replicating#39; the z/VM doc= umentation? (if your a Notes user, you#39;ll understand the 2nd verb)br= brp.s.=C2=A0 Hmmm..=C2=A0 I bet I can use wget with the right incantation = and get the whole website to my laptop along with PDFs..=C2=A0=C2=A0 but no= t sure it handles checking for changes?=C2=A0 br brScottbr --00151757444e2547a6046e970b6f-- -- Jim Bohnsack Cornell University (972) 596-6377 home/office (972) 342-5823 cell jab...@cornell.edu This e-mail may contain Sprint Nextel Company proprietary information intended for the sole use of the recipient(s). Any use by others is prohibited. If you are not the intended recipient, please contact the sender and delete all copies of the message.
Re: Replicating z/VM documentation
-Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Thomas Kern Sent: Monday, July 13, 2009 9:43 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: Replicating z/VM documentation As I need a regular IBM Manual, I read it from the CD/DVD the first time and while I have it open, I use the File/SaveAs function to put a copy in my own manuals folder with a name I can recognize. Then when I am finished with it, I email a copy of that newnamed pdf to my home address to populate my home copy of manuals. Some levels of Windows let you have a Title column in the file list window and ALL IBM manuals have a proper title tag in their pdf copy. I just haven't played with it enough to have it on ONLY for the directories I want. /Tom Kern I am a z/OS'er who hangs around here. I have a number of PDF manuals which I copied from the MVS CDs onto my Amazon KindleDX (nice, but pricey). At least on the MVS CDs, there are a number of XKS files. These files are book shelf type files which contain the file name of the PDF and the associated manual number and title. I wrote a small Perl script on Linux which parses the XKS files and does an ln command to create a file name like: manual.numbetitle.PDF . An example file name would be: SC26-7396-10.zOS_V1R10_DFSMS_Installation_Exits.PDF Since Windows cannot have two names for one file, this script would need to be massaged to do a rename, I guess. I was working on a way to slurp down the current PDF files from IBM, but got to feeling bad about how much bandwidth I would consume, so I never tried. -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * (817)-961-6183 cell john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM
Re: Replicating z/VM documentation
On Monday, 07/13/2009 at 11:00 EDT, McKown, John jmck...@healthmarkets.com wrote: Since Windows cannot have two names for one file, this script would need to be massaged to do a rename, I guess. Actually you can do the same thing with Windows hardlinks. These are symbolic links, not shortcuts, created by the fsutil command: c: cd My Documents\Pubs\pdfs c: fsutil hardlink create ..\VM 5.4\54 License Info Doc.pdf c2461069.pdf Shortcuts won't work unless the application is specifically coded to understand .lnk files (gag). I wish Create shortcut would create hardlinks instead. Is there an app for that? Alan Altmark z/VM Development IBM Endicott
Re: Replicating z/VM documentation
Fortunately, I run Linux as my workstation ;-)I do run Windows under VirtualBox, but only for personal use (iTunes for my iPhone, and Quicken). So maybe I can use the Librarian to download/replicate and the Reader on Linux.. but I really prefer PDF files as the format is ubiquitous and I can easily share them. Thanks for the suggestion and pointer! Scott On Mon, Jul 13, 2009 at 8:47 AM, Michael Forte mjfo...@us.ibm.com wrote: Hello Scott, If your laptop is running Windows, you could use Softcopy Librarian which queries a master list of z/VM publications (those that are found on the CD or DVD publication deliverables) and compares the list to your local repository. It can distinguish between publications that have been updated and those that have not and will allow you to download any number of publications (one to all) for a given shelf (library) or product. As you might have guessed, it can also download shelf and index files (.bks, .bki, and .xks) for use on the host or with Softcopy Reader for Windows or Linux. Take a look at the following site for Softcopy Librarian download information: http://www-01.ibm.com/support/docview.wss?doc=4000640org=SWrs=4 Thanks! *Michael J. Forte* z/OS Storage ID and POK Softcopy Support Software Engineer, System z Information Solutions 58HA IBM Poughkeepsie, New York* **mjfo...@us.ibm.com* mjfo...@us.ibm.com Office: 845-435-9062, T/L: 295-9062 Fax: 845-432-9405 Building 052-1, B09 2455 South Road, Poughkeepsie, NY 12601 Often those who work the hardest are the luckiest... From: Scott Rohling scott.rohl...@gmail.com To: IBMVM@LISTSERV.UARK.EDU Date: 07/13/2009 10:23 AM Subject: Replicating z/VM documentation Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU -- As I am often in locations where internet access is either not possible or not allowed, I really like to keep the official z/VM documentation on my laptop. I know there are web pages with all the PDF files, etc.. But I have issues using them: - The PDF files are named with the manual number, rather than a human readable title. I usually end up renaming them when I download (and am often inconsistent). - I'm never sure I have the 'latest and greatest' - The process is entirely manual So I'm wondering what other people do to keep local copies.. It would be nifty to have something that checked the web pages for newer copies of the pdf files and did 'wget' or something on them - and was smart enough to suck the title out of the web page as well and use it to name the file locally. But - maybe there are other solutions I'm not aware of? Anybody have a nice way to deal with 'replicating' the z/VM documentation? (if your a Notes user, you'll understand the 2nd verb) p.s. Hmmm.. I bet I can use wget with the right incantation and get the whole website to my laptop along with PDFs.. but not sure it handles checking for changes? Scott
Re: Replicating z/VM documentation
Hello Rob, Are you using a download or is there something specific that you are monitoring? Ed Martin Aultman Health Foundation 330-363-5050 ext 35050 -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Rob van der Heij Sent: Monday, July 13, 2009 11:35 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: Replicating z/VM documentation On Mon, Jul 13, 2009 at 4:21 PM, Scott Rohlingscott.rohl...@gmail.com wrote: p.s. Hmmm.. I bet I can use wget with the right incantation and get the whole website to my laptop along with PDFs.. but not sure it handles checking for changes? The first speed-up is to block all the surfing statistics that IBM has added to the various pages. I measured it to be more than 50% of the time it takes to load the page (whether I sit in Europe or in the US, no excuses there). I modified the HTML page that lists all the books so that it points to the local copies of the PDFs for the ones that I have here handy. In fact, I even have the copy of the monitor record layout local on my thinkpad, but that may not be something everyone else needs that often ;-) And I'll do it again with next release (if any). Rob
Re: Replicating z/VM documentation
I have installed the z/VM V5R4 Information Center DVD onto my (Windows) laptop. There's a collection of manuals and redbooks that are copied onto the HD and a (java) app that provides a menu'd interface with search capabilities (including the .pdf's). I don't know if this was something that was produced for releases earlier than 5.4. The reference # is SK5T-7098-00. My usual method, though, has been to download the manuals I wanted and do the Save As routine, cutting and pasting the document title after the SCnn original file name. Of course since certain special chars like / and : aren't accepted in file names one does need to do a bit of editing frequently. Still, it's better than a directory full of indecipherable and non-descriptive filenames. ___ Karl S Huf | Senior Vice President | World Wide Technology 840 S Canal, Chicago, IL, 60607 | phone (312)630-6287 | k...@ntrs.com Please visit northerntrust.com CONFIDENTIALITY NOTICE: This communication is confidential, may be privileged and is meant only for the intended recipient. If you are not the intended recipient, please notify the sender ASAP and delete this message from your system. IRS CIRCULAR 230 NOTICE: To the extent that this message or any attachment concerns tax matters, it is not intended to be used and cannot be used by a taxpayer for the purpose of avoiding penalties that may be imposed by law. For more information about this notice, see http://www.northerntrust.com/circular230 P Please consider the environment before printing this e-mail.image/jpeg
Re: Replicating z/VM documentation
On Mon, 13 Jul 2009, Scott Rohling wrote: - The PDF files are named with the manual number, rather than a human readable title. I usually end up renaming them when I download (and am often inconsistent). - I'm never sure I have the 'latest and greatest' - The process is entirely manual So I'm wondering what other people do to keep local copies.. I do the same thing you do, and it's a huge pain. Some of my co-workers use the Library Reader on their Windows laptops, but I find that even worse than having to rename all the PDFs. I'm sure that says something about the Library Reader, or me, or both, but that's just what I want: the PDF format, with a usable name, available offline on my laptop. Doesn't seem like it should be as much effort as it is. Steve -- Steve Marak -- sama...@gizmoworks.com
Re: Replicating z/VM documentation
On Mon, 13 Jul 2009, Steve Marak wrote: On Mon, 13 Jul 2009, Scott Rohling wrote: Some of my co-workers use the Library Reader on their Windows laptops, but I find that even worse than having to rename all the PDFs. I'm sure that says something about the Library Reader, or me, or both, but that's just what I want: the PDF format, with a usable name, available offline on my laptop. Doesn't seem like it should be as much effort as it is. Steve No worries (as our Aussie friends say). Softcopy Librarian downloads the PDF files with the poor names. But it also downloads the XKS files. The XKS files have the title and manual number in it. Using the fsutil command that Alan previously mentioned (it's at work, I'm at home). My Perl script for Linux follows ( 46 lines) #!/usr/bin/perl use strict; use warnings; use Encode qw(from_to); my ($file,$line,$name,$title,$docid,$shelftitle); { local $/; $file=; #slurp the entire file } $_=$file; #just easier, ya know? from_to($_,utf16-be,iso-8859-1); #convert encoding tr/\n//d; #remove line-end character. ($shelftitle)=m/SHELFHEADER[^]*.*?TITLE([^]*)\/TITLE.*?\/SHELFHEADER/; $shelftitle= unless defined $shelftitle; $shelftitle=~s/ PDF Extended Shelf//; $shelftitle=~s/apos;/'/g; $shelftitle=~s/quot;//g; $shelftitle=~s/lt;//g; $shelftitle=~s/gt;//g; $shelftitle=~s/amp;//g; s/DOCUMENT /\nDOCUMENT /g; s/\/DOCUMENT/\/DOCUMENT\n/g; my @line=split /\n/; foreach $line (@line) { next unless $line=~m/^DOCUMENT /; ($name)=$line=~m/NAME=([^]+)/; $name=~tr/ //d; ($title)=$line=~m/TITLE(.*?)\/TITLE/; ($docid)=$line=~m/ DOCID=([^]*)/; $docid=~tr/ //d; $name=lc $name; $title=~s/apos;/'/g; $title=~s/quot;//g; $title=~s/lt;//g; $title=~s/gt//g; $title=~s/amp;//g; $title=~tr/:,//d; #The next 3 lines massage the title a bit. $title=~s/z\/OS/zOS/g; $title=~s/SMP\/E/SMPE/g; $title=~s/[\/ ]/_/g; #Escape the special characters $title=~s/([\(\)'\\])/\\$1/g; print $docid.$title\t$name\t$ARGV\t$shelftitle\n; print STDERR ln \$name.pdf\ $docid.$title.pdf\n; } You run the above like: for i in *.xks;do ./mksym.pl $i;done names.txt 2do_ln.sh sh do_ln.sh Modify as necessary for Windows. I don't know Windows any more, praise God! -- Trying to write with a pencil that is dull is pointless. Maranatha! John McKown