Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-13 Thread Seymour J Metz
-MAIN@LISTSERV.UA.EDU Subject: Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS? Don't forget about XDAP ... that still works, as an alternative to using access methods :) Of course XDAP is 24-bit only (for the most part). On Sun, Nov 12, 2023 at 8:11 PM Martin Trübner

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-12 Thread Jon Perryman
On Sat, 11 Nov 2023 18:43:18 -0600, Michael Oujesky wrote: >Does seek() actually do a direct access? Or read, but skip the >records from the start of the file? seek() only reads the physical record containing the byte position. This is also true on Unix where physical records are called

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-12 Thread Attila Fogarasi
Don't forget about XDAP ... that still works, as an alternative to using access methods :) Of course XDAP is 24-bit only (for the most part). On Sun, Nov 12, 2023 at 8:11 PM Martin Trübner < 047eec287bd9-dmarc-requ...@listserv.ua.edu> wrote: > I wrote code that did it and it saved

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-12 Thread Martin Trübner
I wrote code that did it and it saved considerable time. Here is the setting/requirments the processing programs can not be changed. the program skips records till the first correct record is read- then does one after the other till out of range or EOF. The file is FBS (created under VSE

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Seymour J Metz
: Saturday, November 11, 2023 11:53 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS? On 11/11/23 21:03, Ed Jaffe wrote: > On 11/11/2023 6:40 PM, Paul Gilmartin wrote: >> On Sun, 12 Nov 2023 02:16:07 +, Seymour J Metz wrote: >>

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Joel C. Ewing
On 11/11/23 21:03, Ed Jaffe wrote: On 11/11/2023 6:40 PM, Paul Gilmartin wrote: On Sun, 12 Nov 2023 02:16:07 +, Seymour J Metz wrote: Solves what problem? Unix doesn't have records, so you have to impose your own record structure and tell seek the byte offset. He said FB.  That makes

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Paul Gilmartin
On Sat, 11 Nov 2023 19:03:01 -0800, Ed Jaffe wrote: >On 11/11/2023 6:40 PM, Paul Gilmartin wrote: >> On Sun, 12 Nov 2023 02:16:07 +, Seymour J Metz wrote: >> >>> Solves what problem? Unix doesn't have records, so you have to impose your >>> own record structure and tell seek the byte offset.

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Ed Jaffe
On 11/11/2023 6:40 PM, Paul Gilmartin wrote: On Sun, 12 Nov 2023 02:16:07 +, Seymour J Metz wrote: Solves what problem? Unix doesn't have records, so you have to impose your own record structure and tell seek the byte offset. He said FB. That makes the calc simple. FB allows short

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Paul Gilmartin
On Sun, 12 Nov 2023 02:16:07 +, Seymour J Metz wrote: >Solves what problem? Unix doesn't have records, so you have to impose your own >record structure and tell seek the byte offset. > He said FB. That makes the calc simple. >On 11/11/23 06:59:07, David S. wrote: >> To help resolve a

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Seymour J Metz
of Paul Gilmartin <042bfe9c879d-dmarc-requ...@listserv.ua.edu> Sent: Saturday, November 11, 2023 5:21 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS? On 11/11/23 06:59:07, David S. wrote: > To help resolve a questi

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Paul Gilmartin
On Sat, 11 Nov 2023 18:43:18 -0600, Michael Oujesky wrote: >Does seek() actually do a direct access? Or read, but skip the >records from the start of the file? > It doesn't say it reads. IBM's

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Michael Oujesky
Does seek() actually do a direct access? Or read, but skip the records from the start of the file? Michael At 04:21 PM 11/11/2023, Paul Gilmartin wrote: On 11/11/23 06:59:07, David S. wrote: UNIX readily solves the problem with seek() and DSFS is supposed to mimic a UNIX file with the

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Michael Oujesky
I forgt to ask what the BLKSIZE is and why yhe need to skip reading just the first 99 records? Michaet At 09:34 AM 11/11/2023, Michael Oujesky wrote: Just a thought as I have not done it, but use BDAM to access the file? Michael At 07:59 AM 11/11/2023, David S. wrote: To help resolve a

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Mike Schwab
You can add KEYLEN with the length of the key (default 0) https://www.ibm.com/docs/en/zos/2.1.0?topic=kp-syntax-4 and KEYOFF with the offset of the Key (default 0). Copies the high key value from the block into the key field of CKD then you can add skip sequential processing to Cobol, PL/I, ASM,

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Paul Gilmartin
On 11/11/23 06:59:07, David S. wrote: > To help resolve a question posted to a LinkedIn group I manage: > www.linkedin.com/feed/update/urn:li:groupPost:910927-7128598004344786944 > ... I'd like to find out if there's any way to achieve *true* > Skip-Sequential processing with a Fixed Block

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Michael Stein
On Sat, Nov 11, 2023 at 08:59:07AM -0500, David S. wrote: > ... I'd like to find out if there's any way to achieve *true* > Skip-Sequential processing with a Fixed Block Sequential File with a fairly > short record length (i.e. DCB=(DSORG=PS,RECFM=FB,LRECL=80)? > question is a DSORG=PS

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Joel C. Ewing
If the question is whether there is direct z/OS support for this for FB PS datasets, the answer is probably no, although if you get down to assembler coding, there are ways to get close. It looks like you could potentially design and implement an I/O interface routine (in assembler) using

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Walt Farrell
On Sat, 11 Nov 2023 08:59:07 -0500, David S. wrote: >To help resolve a question posted to a LinkedIn group I manage: >www.linkedin.com/feed/update/urn:li:groupPost:910927-7128598004344786944 >... I'd like to find out if there's any way to achieve *true* >Skip-Sequential processing with a Fixed

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Paul Gilmartin
On Sat, 11 Nov 2023 08:59:07 -0500, David S. wrote: >... . Sequential processing >*must* begin at specified starting point and there can be *no* reading of >any records prior to that point. > That sounds absurd. So if a block contains 10 records, you want to be able to read the last 5 with

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Michael Oujesky
Just a thought as I have not done it, but use BDAM to access the file? Michael At 07:59 AM 11/11/2023, David S. wrote: To help resolve a question posted to a LinkedIn group I manage: www.linkedin.com/feed/update/urn:li:groupPost:910927-7128598004344786944 ... I'd like to find out if there's