AFP file

2022-10-26 Thread Shelia Chalk
Hello,

Has anyone ever sent a file type .AFP file from the pc to mainframe?  If so, 
what product do you use and how?

Thanks
Shelia Chalk

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: AFP file

2022-10-26 Thread Gadi Ben-Avi
Send it as binary  using ftp
Then use the AFRREBLK utility to reblock it.
AFRREBLK is in SAPSEXEC.

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Shelia Chalk
Sent: Wednesday, October 26, 2022 3:36 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: AFP file

Hello,

Has anyone ever sent a file type .AFP file from the pc to mainframe?  If so, 
what product do you use and how?

Thanks
Shelia Chalk

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: AFP file

2022-10-26 Thread Shelia Chalk
Thank you so much..   it works...   
Thanks again   
Shelia Chalk

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Gadi Ben-Avi
Sent: Wednesday, October 26, 2022 7:41 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: AFP file

Send it as binary  using ftp
Then use the AFRREBLK utility to reblock it.
AFRREBLK is in SAPSEXEC.

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Shelia Chalk
Sent: Wednesday, October 26, 2022 3:36 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: AFP file

Hello,

Has anyone ever sent a file type .AFP file from the pc to mainframe?  If so, 
what product do you use and how?

Thanks
Shelia Chalk

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Location of forms code in z/OS manuals

2022-10-26 Thread Seymour J Metz
I wanted to write a script to index a bunch of manuals that I downloaded from 
IBM and wanted the forms code to be the primary key. The file names are not 
very helpful. Given that, I have to live with whatever information IBM chooses 
to provide, unless and until someone submits an RFE with a compelling business 
case for adding more metadata.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Paul Gilmartin [042bfe9c879d-dmarc-requ...@listserv.ua.edu]
Sent: Tuesday, October 25, 2022 6:35 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Location of forms code in z/OS manuals

On Tue, 25 Oct 2022 17:01:22 -0500, Joel C. Ewing  wrote:
>...
>Lacking a convention to use a specific metadata key for the manual
>publication number, the obvious and simplest way to supply the manual
>publication number in a manner that could easily be extracted from a PDF
>file is to include the complete designation as part of the file name.
>
The OP hasn't explained clearly what he needs to do, perhaps with an example
of what he wants to see.

Is there a satisfactory example, perhaps from an organization other than IBM?

--
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Location of forms code in z/OS manuals

2022-10-26 Thread Paul Gilmartin
On Wed, 26 Oct 2022 13:39:02 +, Seymour J Metz wrote:

>I wanted to write a script to index a bunch of manuals that I downloaded from 
>IBM and wanted the forms code to be the primary key. The file names are not 
>very helpful. Given that, I have to live with whatever information IBM chooses 
>to provide, unless and until someone submits an RFE with a compelling business 
>case for adding more metadata.
> 
What's a "forms code"?  can you provide an example?

On 


there's an index.html file that I use either to access the unzipped .pdf files 
or to create
a parallel list of symbolic links such as:

ls -1R
...
./z⧸OS XL C⧸C++:
Standard C++ Library Reference
z⧸OS C Curses
z⧸OS XL C⧸C++ Compiler and Runtime Migration Guide for the Application 
Programmer
z⧸OS XL C⧸C++ Language Reference
z⧸OS XL C⧸C++ Messages
z⧸OS XL C⧸C++ Programming Guide
z⧸OS XL C⧸C++ Runtime Library Reference
z⧸OS XL C⧸C++ User's Guide

./z⧸OS Xvfb:
z⧸OS Xvfb User's Guide

-- 
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Location of forms code in z/OS manuals

2022-10-26 Thread Wendell Lovewell
Seymour, could you use the Title tag? 

root@WLPC:/a/temp# pdfinfo sg246818.pdf | grep Title
Title:  Merging Systems into a Sysplex

Gil, thanks for the tip on pdfinfo.

Wendell

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Fixed fields in regex (was: Trying to Parse a LISTCAT with SORT)

2022-10-26 Thread Walt Farrell
On Tue, 25 Oct 2022 10:33:23 -0500, Paul Gilmartin  wrote:

>On Tue, 25 Oct 2022 08:55:09 -0500, Walt Farrell wrote:

>On Sat, 22 Oct 2022 04:09:43 +, Sri h Kolusu  wrote:
>>  %03=(ENDBEFR=C'.',FIXLEN=8),   # Node 3
>> ...
>Thanks.  I've wished for something line FIXLEN in regular expressions.

Got an example of what you want in regular expressions?

>>>NONVSAM --- MYFILE.ABLA.MIDDLE.N04.REPT3.NOTUSE
>>> DATASET-OWNER-(NULL) CREATION2022.200
>>>
>>>becomes:
>>>N04  REPT320220719 MIDDLE  
>>
>>Sorry; doesn't help. I should have been more specific, and started with "what 
>>does FIXLEN do that you'd want to see in a regular expression?"
>>
>
>
>See the ply cited where Sri h Kolusu addressed the OP's requirement.  Could 
>this have been
>done in awk or sed with regular expressions?  In REXX I used LEFT() to achieve 
>the function.

Thanks for the doc reference.

So FIXLEN is applying to the output rather than the input. I don't think there 
are functions like that in standard regular expression processing, since it's 
about input parsing, not creation of output records. I have no idea if sed or 
awk have any specific functions like that for formatting their output, as I 
selecom use them. 
Sorry.

-- 
Walt

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Location of forms code in z/OS manuals

2022-10-26 Thread Seymour J Metz
Title is only one of the two data that I want as keys.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Wendell Lovewell [01e9c0ee0673-dmarc-requ...@listserv.ua.edu]
Sent: Wednesday, October 26, 2022 10:09 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Location of forms code in z/OS manuals

Seymour, could you use the Title tag?

root@WLPC:/a/temp# pdfinfo sg246818.pdf | grep Title
Title:  Merging Systems into a Sysplex

Gil, thanks for the tip on pdfinfo.

Wendell

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Location of forms code in z/OS manuals

2022-10-26 Thread Seymour J Metz
By form code I mean the ---xx number that identifies the manual and 
used to be (without the -xx) the number used for ordering the manual. E.g., has 
the form code SA22-7801-14 and the title z/OS UNIX System Services User's Guide,

Downloading and parsing multiple index.html files should work for some but not 
all of the manuals that I've downloaded.

Thanks.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Paul Gilmartin [042bfe9c879d-dmarc-requ...@listserv.ua.edu]
Sent: Wednesday, October 26, 2022 10:03 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Location of forms code in z/OS manuals

On Wed, 26 Oct 2022 13:39:02 +, Seymour J Metz wrote:

>I wanted to write a script to index a bunch of manuals that I downloaded from 
>IBM and wanted the forms code to be the primary key. The file names are not 
>very helpful. Given that, I have to live with whatever information IBM chooses 
>to provide, unless and until someone submits an RFE with a compelling business 
>case for adding more metadata.
>
What's a "forms code"?  can you provide an example?

On 


there's an index.html file that I use either to access the unzipped .pdf files 
or to create
a parallel list of symbolic links such as:

ls -1R
...
./z⧸OS XL C⧸C++:
Standard C++ Library Reference
z⧸OS C Curses
z⧸OS XL C⧸C++ Compiler and Runtime Migration Guide for the Application 
Programmer
z⧸OS XL C⧸C++ Language Reference
z⧸OS XL C⧸C++ Messages
z⧸OS XL C⧸C++ Programming Guide
z⧸OS XL C⧸C++ Runtime Library Reference
z⧸OS XL C⧸C++ User's Guide

./z⧸OS Xvfb:
z⧸OS Xvfb User's Guide

--
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Batch to extract scratch tape listing

2022-10-26 Thread Peter
Hello

Is there a sample JCL to extract scratch Virtual tape count using batch?

Peter

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Batch to extract scratch tape listing

2022-10-26 Thread Paul Gorlinsky
This is a bit vague. 

Which OS? Which tape manager? Which Tape Server? 

In general, all of the systems include a process to extract SCRATCH tape 
information. From the Tape Managers, they usually include a Report Writer of 
some sort get the information. From the Tape Servers, they all do it 
differently. And what the Tape Manager thinks are scratches and what the Tape 
Server thinks are scratches are generally loosely tied together.

For example, with my product, ATSM z/Appliance, we define a reserved VOLSER to 
manage the scratch pool on the tape server. Extracting the list from RMM or 
CA-1 or DYNAM-T, writing the list to the reserved VOLSER, then rewind, unload 
the tape, causing the code to process the list and associated reporting 
commands. The process generates a report that is written to the same tape. The 
report includes a list of all tapes, scratch tapes, archived tapes, etc. Using 
IEBGENER, on zOS, you can retrieve the report. 

Paul Gorlinsky
VP Advanced TS Migrations, Co.
https://www.atsmigrations.com
+1-813-398-CICS (2427)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Location of forms code in z/OS manuals

2022-10-26 Thread Farley, Peter
The "pdftotext" command line tool from the XPDFReader team does a pretty 
credible job of extracting good, readable (and more importantly, utility 
program readable) text from IBM PDF's.  I use it very successfully to extract 
data from the z/Architecture PoOP for a side project of mine.

https://www.xpdfreader.com/download.html

Using an appropriate utility tool you should be able to extract the form number 
you need from a text extract of the PDF title page (yes, this version of 
"pdftotext" can correctly extract specific pages by absolute page number [not 
the printed page number, just the sequential page-count number]).

Example usage of "pdftotext" to extract all of Appendix B by page number from a 
specific edition of the PoOP to a UTF-8 text file with CRLF line endings:

pdftotext -f 1573 -l 1642 -eol dos -cfg sample-xpdfrc -table -nopgbrk -enc 
UTF-8 ..\zArchPDF\a22-7832-10-zArch-PoOP-2015.pdf 
a22-7832-10-zArch-PoOP-AppB.txt

The "-table" option is very good at extracting readable text data from the PoOP 
manual, I believe it will work as well on other IBM manual PDF's.

HTH

Peter

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Seymour J Metz
Sent: Wednesday, October 26, 2022 10:55 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Location of forms code in z/OS manuals

By form code I mean the ---xx number that identifies the manual and 
used to be (without the -xx) the number used for ordering the manual. E.g., has 
the form code SA22-7801-14 and the title z/OS UNIX System Services User's Guide,

Downloading and parsing multiple index.html files should work for some but not 
all of the manuals that I've downloaded.

Thanks.
--

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


AW: Location of forms code in z/OS manuals

2022-10-26 Thread Mike Beer
Hi,
Students of Rony Flatscher (Professor at the WU, Vienna) worked on several
interesting REXX projects.
One of the was the use of PDF files out of Rexx.

https://wi.wu.ac.at/rgf/diplomarbeiten/

Look for author Dobrea

Rony's Bean Scripting Framework allows the easy integration of Java into
ooREXX.
https://sourceforge.net/projects/bsf4oorexx/

Best regards
Mike

-Ursprüngliche Nachricht-
Von: IBM Mainframe Discussion List  Im Auftrag von
Seymour J Metz
Gesendet: Wednesday, October 26, 2022 15:39
An: IBM-MAIN@LISTSERV.UA.EDU
Betreff: Re: Location of forms code in z/OS manuals

I wanted to write a script to index a bunch of manuals that I downloaded
from IBM and wanted the forms code to be the primary key. The file names are
not very helpful. Given that, I have to live with whatever information IBM
chooses to provide, unless and until someone submits an RFE with a
compelling business case for adding more metadata.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of
Paul Gilmartin [042bfe9c879d-dmarc-requ...@listserv.ua.edu]
Sent: Tuesday, October 25, 2022 6:35 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Location of forms code in z/OS manuals

On Tue, 25 Oct 2022 17:01:22 -0500, Joel C. Ewing  wrote:
>...
>Lacking a convention to use a specific metadata key for the manual 
>publication number, the obvious and simplest way to supply the manual 
>publication number in a manner that could easily be extracted from a 
>PDF file is to include the complete designation as part of the file name.
>
The OP hasn't explained clearly what he needs to do, perhaps with an example
of what he wants to see.

Is there a satisfactory example, perhaps from an organization other than
IBM?

--
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Location of forms code in z/OS manuals

2022-10-26 Thread Seymour J Metz
PDFBox is certainly the way to go for the title, but IBM doesn't appear to be 
putting the forms code anywhere accessible.


From: IBM Mainframe Discussion List  on behalf of 
Mike Beer 
Sent: Wednesday, October 26, 2022 1:00 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: AW: Location of forms code in z/OS manuals

Hi,
Students of Rony Flatscher (Professor at the WU, Vienna) worked on several
interesting REXX projects.
One of the was the use of PDF files out of Rexx.

https://secure-web.cisco.com/1nYU7m-1vUE_5_VO-UqhVHFk8Ds1mKzC1jcP41cMRtvVQrOT8Hok7uVOKnW7nk1mLxvDW_Trs_4H91p_1YMHn_s8QHGPJoJyiArH9314TlTIpKd5CYqqqZzIGWVu0SGJ3yqE-p079eofxMvyHo5ixJk0KWW0NVaZiKNVulLF8_DiEIKqSe1nUV4DhMz6L4bItwivI6xEBZ3ZysqaTwcKINKkZwaGdDu8Bamydgb2ghBlj8cGXTY_ZUoUW_bVIs9POs_KPuQ7DmSDfgjv0xoUhQoPeymAqnLJbVKhkBSgXkY_7efA2vLFxg-I1euhHEonnsjYYyKyhiJNg5G9NOnLItBsOYDvXLmZkkywhQf0SYKrzgH4ekqvWc4IVBGAHVkBsIcojKzO127sYbgg0w13hQKfQOFEcX98OmNy6mssmWaRKYFbaUBXXH8t5JvfPTuIG/https%3A%2F%2Fwi.wu.ac.at%2Frgf%2Fdiplomarbeiten%2F

Look for author Dobrea

Rony's Bean Scripting Framework allows the easy integration of Java into
ooREXX.
https://secure-web.cisco.com/1fZ4ZqZNgZjYQeUIt-_bONuh-1jKzJOLraEghYhTJd2bfh-tBUWj4D3yUKCmrQ6de2HrxYH1g3MeWDrvCPFUtDjeQbBFnkLusuJKEwrT0E9Du-JGsa4e9iqFYBSzuUMeQOv7r3nUgUYIEnKXFTuZ9S1GlTxgt6ez09QV9-N1tE49y5o7_3Hfz0CXb68zejmQ1yU8H_BD0C0Fkp_y33mOXTmjlipVdIKf3tqKyR4SKuwA_FebpOCW5xhBix8KUASMq9ZW6TzpOLcW7TjY7yp7dyP9pybwLyca9uGPKidEvLBYW7RT1lF5nXiJ3J9kParFZXwXKN-8p3eTx3bThuxR7JP59jcgdaYMEtUHVaOzSyXKQB8QVFbMl-7fbuRN6Pj-nZyLrjrtdNGrUHpxwMpCxGWSBIfjg75FaAw7co-QC7w50S-3BfG8rSPem6_pto3agoWL96Um8DqaqArFtOcE3-A/https%3A%2F%2Fsourceforge.net%2Fprojects%2Fbsf4oorexx%2F

Best regards
Mike

-Ursprüngliche Nachricht-
Von: IBM Mainframe Discussion List  Im Auftrag von
Seymour J Metz
Gesendet: Wednesday, October 26, 2022 15:39
An: IBM-MAIN@LISTSERV.UA.EDU
Betreff: Re: Location of forms code in z/OS manuals

I wanted to write a script to index a bunch of manuals that I downloaded
from IBM and wanted the forms code to be the primary key. The file names are
not very helpful. Given that, I have to live with whatever information IBM
chooses to provide, unless and until someone submits an RFE with a
compelling business case for adding more metadata.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of
Paul Gilmartin [042bfe9c879d-dmarc-requ...@listserv.ua.edu]
Sent: Tuesday, October 25, 2022 6:35 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Location of forms code in z/OS manuals

On Tue, 25 Oct 2022 17:01:22 -0500, Joel C. Ewing  wrote:
>...
>Lacking a convention to use a specific metadata key for the manual
>publication number, the obvious and simplest way to supply the manual
>publication number in a manner that could easily be extracted from a
>PDF file is to include the complete designation as part of the file name.
>
The OP hasn't explained clearly what he needs to do, perhaps with an example
of what he wants to see.

Is there a satisfactory example, perhaps from an organization other than
IBM?

--
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Location of forms code in z/OS manuals

2022-10-26 Thread Paul Gilmartin
On Wed, 26 Oct 2022 14:55:05 +, Seymour J Metz wrote:
>...
>Downloading and parsing multiple index.html files should work for some but not 
>all of the manuals that I've downloaded.
> 
How are the forms codes useful?  Ordering hardcopies?  Citations?

Wandering only slightly OT, I notice that when I download and unzip the 0.8 GB
archive from
,
the metadata times are reasonably distributed over a couple years with some
clustering around the ends of odd-numbered months.  However, the file times
(assuming UTC) are distributed through the several minutes the download took.
This fits the astonishing assumption that the PDFs are rendered on-the-fly,
or perhaps just copied from a repository, during the download!

I'd find it more useful if the file timestamps matched the metadata.  But I have
a script (using "pdfinfo") to adjust those.

I'd also be grateful if the timestamp of the .zip archive as reported in the 
HTTP
headers truly represented the last update, or if the site supplied an ETag so
I could poll for updates and download conditionally.

-- 
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN