Batchpipes (was: SORT question: ...)

2020-09-23 Thread Paul Gilmartin
On Wed, 23 Sep 2020 19:23:33 +0100, Martin Packer wrote: >No, that would have to be another job, also specifying eg SUBSYS=PIPE. And >scheduled to run alongside the sort. > Eek! How do they find each other? And perhaps more important, what if several programmers unknown to e

Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-23 Thread Martin Packer
No, that would have to be another job, also specifying eg SUBSYS=PIPE. And scheduled to run alongside the sort. Cheers, Martin Martin Packer Systems Investigator & Performance Troubleshooter, IBM +44-7802-245-584 email: martin_pac...@uk.ibm.com Twitter / Facebook IDs: MartinPacker

Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-23 Thread Paul Gilmartin
On Wed, 23 Sep 2020 16:01:08 +0100, Martin Packer wrote: >Right. That example used BatchPipes/MVS pipes - but it's not essential to >the use of OUTFIL SPLIT. The reason it used pipes was to enable cloning to >balance a pipe. > OK. I looked at your example (z/OS 2.1; not too misty). But what

Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-23 Thread Martin Packer
er x23353" <031df298a9da-dmarc-requ...@listserv.ua.edu> To: IBM-MAIN@LISTSERV.UA.EDU Date: 23/09/2020 14:54 Subject: [EXTERNAL] Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output? Sent by:IBM Mainframe Discussion

Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-23 Thread Farley, Peter x23353
-MAIN@LISTSERV.UA.EDU Subject: Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output? EXTERNAL EMAIL OUTFIL SPLIT. Something also from the mists of time, by no coincidence, is this: https://urldefense.com/v3/__https://www.ibm.com/support

Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-23 Thread Martin Packer
Date: 22/09/2020 20:34 Subject: [EXTERNAL] Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output? Sent by:IBM Mainframe Discussion List > On the "tagging" that Sri Hari mentioned: > > 1) You needn't tag unless you

Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-23 Thread Martin Packer
r.fm/marna-walle Youtube channel: https://www.youtube.com/channel/UCu_65HaYgksbF6Q8SQ4oOvA From: Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu> To: IBM-MAIN@LISTSERV.UA.EDU Date: 22/09/2020 20:31 Subject:[EXTERNAL] Re: SORT question: How to both remove rec

Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-22 Thread Sri h Kolusu
> On the "tagging" that Sri Hari mentioned: > > 1) You needn't tag unless you want to - and there will be some occasions > where you don't want to. Matrin, Fully agreed. I just wanted to show case with IFTHEN it is much easier to split into multiple files with different conditions. > Just some

Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-22 Thread Paul Gilmartin
On Tue, 22 Sep 2020 20:08:12 +0100, Martin Packer wrote: > >SAVE has, to my mind, been most invaluable. Prior to this you had to >figure out the boolean complement of the INCLUDE= clause. With more than >one INCLUDE= clause in a sort it became hairier, requiring De Morgan's >Law*.

Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-22 Thread Martin Packer
o this you had to figure out the boolean complement of the INCLUDE= clause. With more than one INCLUDE= clause in a sort it became hairier, requiring De Morgan's Law*. :-) SAVE made this a lot simpler and less error prone. "Card Dealer" not so much. I would expect both impl

Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-22 Thread Farley, Peter x23353
Thanks Sri, that is just what I need. Peter -Original Message- From: IBM Mainframe Discussion List On Behalf Of Sri h Kolusu Sent: Tuesday, September 22, 2020 2:24 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: SORT question: How to both remove records from a file AND write removed

Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-22 Thread Sri h Kolusu
> In one pass of an input file is there a way to use SORT to both > remove identified records from an input file AND write those removed > records to a second output file? Peter, You don't need 2 passes of data, you can tag the records that match your identification and then use

Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-22 Thread Farley, Peter x23353
Thanks Max, that would seem to be the way. Peter -Original Message- From: IBM Mainframe Discussion List On Behalf Of Massimo Biancucci Sent: Tuesday, September 22, 2020 1:44 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: SORT question: How to both remove records from a file AND write

Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-22 Thread Massimo Biancucci
t=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> Il giorno mar 22 set 2020 alle ore 19:22 Farley, Peter x23353 < 031df298a9da-dmarc-requ...@listserv.ua.edu> ha scritto: > In one pass of an input file is there a way to use SORT to both remove > identified records from an inpu

SORT question: How to both remove records from a file AND write removed records to a 2nd output?

2020-09-22 Thread Farley, Peter x23353
In one pass of an input file is there a way to use SORT to both remove identified records from an input file AND write those removed records to a second output file? I know I can run two passes of the input using INCLUDE in pass 1 to select just the records to be removed and a second pass

Re: COBOL ? Re: SORT selection question

2020-09-17 Thread Farley, Peter x23353
ay from us, so I personally wouldn’t want to be the one filing such an RCF. Peter -Original Message- From: IBM Mainframe Discussion List On Behalf Of Paul Gilmartin Sent: Thursday, September 17, 2020 12:06 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: COBOL ? Re: SORT selection questio

Re: COBOL ? Re: SORT selection question

2020-09-17 Thread Seymour J Metz
Mainframe Discussion List on behalf of Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Thursday, September 17, 2020 2:56 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: COBOL ? Re: SORT selection question On Thu, 17 Sep 2020 17:17:35 +, Seymour J Metz wrote: >It m

Re: COBOL ? Re: SORT selection question

2020-09-17 Thread Paul Gilmartin
On Thu, 17 Sep 2020 17:17:35 +, Seymour J Metz wrote: >It may depend on how you define support. There are some utilities that work >but for which the documentation doesn't mention it. The DD: recognition is >unsupported in the sense that if it breaks IBM will not consider that an error. >

Re: COBOL ? Re: SORT selection question

2020-09-17 Thread Seymour J Metz
From: IBM Mainframe Discussion List on behalf of Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Thursday, September 17, 2020 12:05 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: COBOL ? Re: SORT selection question On Thu, 17 Sep 2020

Re: COBOL ? Re: SORT selection question

2020-09-17 Thread Sri h Kolusu
>>> Note that I changed your EQ to GE. So it would stop after reading no > more than 1001 irrelevant records, much improving the performance > for the OP's "very large" SORTIN. Note also that the OP said SORTIN > had previously been sorted, so no records having key LT,'ABC' would > precede the

Re: [EXTERNAL] Re: COBOL ? Re: SORT selection question

2020-09-17 Thread Nash, Jonathan S.
: SORT selection question On Thu, 17 Sep 2020 14:58:44 +, Farley, Peter x23353 wrote: >Of course that is an option, particularly the COBOL one. I am personally very >familiar with awk and z/OS awk does support "classic" datasets via DD, ... > Citation needed. Ac

Re: COBOL ? Re: SORT selection question

2020-09-17 Thread Paul Gilmartin
On Thu, 17 Sep 2020 14:58:44 +, Farley, Peter x23353 wrote: >Of course that is an option, particularly the COBOL one. I am personally very >familiar with awk and z/OS awk does support "classic" datasets via DD, ... > Citation needed. According to what IBM document? On Thu, 17 Sep 2020

Re: SORT selection question

2020-09-17 Thread Sri h Kolusu
> Can you set an a priori upper bound on the number of 'ABC' records? > Suppose you're confident that there are at most 1000. Gil, Unfortunately that wouldn't work. If your input have less than 1000 records for the key 'ABC' and you code STOPAFT=1001, then it would read the entire file as we

Re: SORT selection question

2020-09-17 Thread Farley, Peter x23353
PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: SORT selection question You could also use an E15 and return an 8 when you get past the interesting data. Chris Blaicher Technical Architect Precisely.com -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU

Re: COBOL ? Re: SORT selection question

2020-09-17 Thread Farley, Peter x23353
: IBM-MAIN@LISTSERV.UA.EDU Subject: COBOL ? Re: SORT selection question Why not just write a small program ? COBOL ? AWK ? :-) SED :-) -Original Message- From: IBM Mainframe Discussion List On Behalf Of Scott Barry Sent: Wednesday, September 16, 2020 6:36 PM To: IBM-MAIN@LISTSERV.UA.E

Re: SORT selection question

2020-09-17 Thread Farley, Peter x23353
: Wednesday, September 16, 2020 8:20 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: SORT selection question Hi Peter, If you have IBM File Manager you could do what you need with the Data Set Copy (DSC) function and an enhanced processing procedure: $$FILEM DSC INPUT=DDIN, $$FILEM OUTPUT=DDOUT

Re: SORT selection question

2020-09-17 Thread Farley, Peter x23353
Wednesday, September 16, 2020 9:16 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: SORT selection question On Thu, 17 Sep 2020 08:20:07 +0800, Peter Van Dyke wrote: > >If you have IBM File Manager you could do what you need with the Data >Set Copy (DSC) function and an enhanced processing pr

Re: SORT selection question

2020-09-16 Thread Paul Gilmartin
C ') > >Peter > >-Original Message- >From: IBM Mainframe Discussion List On Behalf Of >Sri h Kolusu >Sent: Wednesday, September 16, 2020 3:54 PM >To: IBM-MAIN@LISTSERV.UA.EDU >Subject: Re: SORT selection question > >EXTERNAL EMAIL > >>>> When

Re: SORT selection question

2020-09-16 Thread Sri h Kolusu
>>> Does that meet the OP's requirement to copy selected records to OUTPUT? > Is another command necessary? Gil, DSC (Data Set Copy) function will copy from the input DDIN to output DDOUT and as soon as it finds record greater than ABC it stops reading and all the records read before that are

Re: SORT selection question

2020-09-16 Thread Paul Gilmartin
On Thu, 17 Sep 2020 08:20:07 +0800, Peter Van Dyke wrote: > >If you have IBM File Manager you could do what you need with the Data Set >Copy (DSC) function and an enhanced processing procedure: > >$$FILEM DSC INPUT=DDIN, >$$FILEM OUTPUT=DDOUT, >$$FILEM PROC=* >IF FLDI(1,3,C,'GT',"ABC")

Re: SORT selection question

2020-09-16 Thread Wayne Bickerdike
I agree with Christopher. I designed an Assembler Macro that built an exit exit module. A few seconds to Assemble. GET on a sequential file, pass to sort if required. RC = 8 when you get past the desired key value. Of course if you are not sorting, add a PUT instead of a return. On Thu, Sep 17

Re: SORT selection question

2020-09-16 Thread Christopher Y. Blaicher
:20 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: SORT selection question [ External - This message originated Externally. Use proper judgement and caution with attachments, links, or responses. ] Hi Peter, If you have IBM File Manager you could do what you need with the Data Set Copy (DSC

Re: SORT selection question

2020-09-16 Thread Peter Van Dyke
Hi Peter, If you have IBM File Manager you could do what you need with the Data Set Copy (DSC) function and an enhanced processing procedure: $$FILEM DSC INPUT=DDIN, $$FILEM OUTPUT=DDOUT, $$FILEM PROC=* IF FLDI(1,3,C,'GT',"ABC") THEN RETURN STOP IMMEDIATE/* Stop processing

COBOL ? Re: SORT selection question

2020-09-16 Thread Nash, Jonathan S.
Why not just write a small program ? COBOL ? AWK ? :-) SED :-) -Original Message- From: IBM Mainframe Discussion List On Behalf Of Scott Barry Sent: Wednesday, September 16, 2020 6:36 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: [EXTERNAL] Re: SORT selection question With DFSORT

Re: SORT selection question

2020-09-16 Thread Paul Gilmartin
On Thu, 17 Sep 2020 08:58:59 +1000, Wayne Bickerdike wrote: >Not sure how a sequential file has a "KEY". It may be a value in fixed >columns. > I find "KEY" used apparently in that sense in numerous places in: z/OS Version 2 Release 4 DFSORT Application Programming Guide IBM SC23-6878-40

Re: SORT selection question

2020-09-16 Thread Farley, Peter x23353
I'm not quite understanding how that could work with current SORT software. E.G., if there are 100 records to be selected in the first 100,000 records and none after that, the relative record number would be 10 for the SORT STOPAFT, not exactly what was requested. SORT JOIN can do

Re: SORT selection question

2020-09-16 Thread Wayne Bickerdike
I should have read the OP more carefully. Mea culpa. E15 exit? Used to do this to get keyranges from CA-Datacom using GETIT. Just pass the desired value to the exit to tell sort to finish. On Thu, Sep 17, 2020 at 8:58 AM Wayne Bickerdike wrote: > Not sure how a sequential file has a &

Re: SORT selection question

2020-09-16 Thread Wayne Bickerdike
Not sure how a sequential file has a "KEY". It may be a value in fixed columns. I'm sure it's why we've been sorting files for donkeys years. On Thu, Sep 17, 2020 at 8:53 AM Sri h Kolusu wrote: > > With DFSORT/SYNCSORT in mind, possibly a two-step process where the > > first step interrogates

Re: SORT selection question

2020-09-16 Thread Wayne Bickerdike
.G., STOPWHEN(1,3,'AC ') > >> > >I'm imagining something like: > >...STOPAFT=1 > >...COND=(1,3,CH,GT,C'ABC') > > > >Certainly stops at (almost) the right place. but Kolusu indicates, there's > >no way to select COND=(1,3,CH,EQ,C'ABC') for o

Re: SORT selection question

2020-09-16 Thread Sri h Kolusu
> With DFSORT/SYNCSORT in mind, possibly a two-step process where the > first step interrogates an input data stream (no output generated, > mostly for optimization) to detect a relative-record# where the > limit-key-value (COND-argument) is then passed to a second step Scott, I think you missed

Re: SORT selection question

2020-09-16 Thread Scott Barry
gt;I'm imagining something like: >...STOPAFT=1 >...COND=(1,3,CH,GT,C'ABC') > >Certainly stops at (almost) the right place. but Kolusu indicates, there's >no way to select COND=(1,3,CH,EQ,C'ABC') for output. > > >>-Original Message- >>From: Sr

Re: SORT selection question

2020-09-16 Thread Paul Gilmartin
ainly stops at (almost) the right place. but Kolusu indicates, there's no way to select COND=(1,3,CH,EQ,C'ABC') for output. >-Original Message- >From: Sri h Kolusu >Sent: Wednesday, September 16, 2020 3:54 PM > >>>> When using SORT (either DFSORT or SYNCSORT) to select

Re: SORT selection question

2020-09-16 Thread Sri h Kolusu
> When the goal is to find ALL records with the selected > values and one does not know in advance how many there are, it is > not as helpful as it could be. Peter, Unfortunately Sort does not have that feature. Thanks, Kolusu DFSORT Development IBM Co

Re: SORT selection question

2020-09-16 Thread Farley, Peter x23353
, something like: STOPWHEN COND=(key value greater than this stop reading) E.G., STOPWHEN(1,3,'AC ') Peter -Original Message- From: IBM Mainframe Discussion List On Behalf Of Sri h Kolusu Sent: Wednesday, September 16, 2020 3:54 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: SORT selection

Re: SORT selection question

2020-09-16 Thread Sri h Kolusu
>>> When using SORT (either DFSORT or SYNCSORT) to select a relatively > small sample of records by (a) particular key value(s) from a *very > large* sequential file, Peter, You can use STOPAFT parm to stop reading the input once you get to a threshold value. For example i

SORT selection question

2020-09-16 Thread Farley, Peter x23353
When using SORT (either DFSORT or SYNCSORT) to select a relatively small sample of records by (a) particular key value(s) from a *very large* sequential file, when one knows in advance that the "key values" used to select the desired sample records are in sorted order in the

Re: sort join keys not correctly working

2020-09-02 Thread Ron Thomas
Thanks a Lot Kolusu for the information . Regards Ron T -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Re: sort join keys not correctly working

2020-09-01 Thread Sri h Kolusu
> As the 1'st file has leading zeros for some of the records 2.73 are > not getting matched . could someone please let me know how to get > this addressed? Ron, If you looked up the Joinkeys description for FIELDS in the DFSORT Application programming guide you would have found this The keys

sort join keys not correctly working

2020-09-01 Thread Ron Thomas
101007 101749 101887 101894 101903 102081 102093 102101 Sort card coded JOINKEYS FILES=F1,FIELDS=(1,12,A) JOINKEYS FILES=F2,FIELDS=(1,12,A) REFORMAT FIELDS=(F1:01,3421,F2:01,39,?) OPTION COPY JOIN UNPAIRED,F1,F2 OUTFIL FNAMES=BOTH, INCLUDE=(3461,1,CH,EQ,C'B'),BUILD=(1,515,516:3435,12,528

Re: SORT Capacity Exceeded

2020-07-29 Thread Sri h Kolusu
> Could you elaborate on why and when AVGRECLEN allocation is more efficient? Barry, If AVGRLEN=n is not specified, DFSORT will use one-half of the maximum record length as the average record length. To determine the input file size for a sort application. DFSORT performs calculations ba

Re: SORT Capacity Exceeded

2020-07-29 Thread Barry Merrill
..@mxg.com for technical questions ba...@mxg.com -Original Message- From: IBM Mainframe Discussion List On Behalf Of Sri h Kolusu Sent: Wednesday, July 29, 2020 9:29 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: SORT Capacity Exceeded > ICE752I 0 FSZ=100121518644 BC IGN=0 E AVG=16336 0 WS

Re: SORT Capacity Exceeded

2020-07-29 Thread Sri h Kolusu
> ICE752I 0 FSZ=100121518644 BC IGN=0 E AVG=16336 0 WSP=130040639 C DYN=0 0 > ICE236I 0 OPTIONS: DYNAPCT=10 ,MOWRK=Y,TUNE=STOR,EXPMAX=600,EXPOLD=200,EXPRES=100 Robert, The file you are trying to sort is little over 100 Gigs, but your installation option EXPMAX=600 MB which i

Re: SORT Capacity Exceeded

2020-07-29 Thread Vernooij, Kees (ITOP NM) - KLM
Of Richards, Robert B. Sent: 29 July 2020 13:38 To: IBM-MAIN@LISTSERV.UA.EDU Subject: SORT Capacity Exceeded I am out of my element trying to figure out the following SORT issue. Job runs normally when the number of SORTIN records is much less. JCL contains 16 SORTWK datasets. If memory serves, isn't

Re: SORT Capacity Exceeded

2020-07-29 Thread Mike Schwab
ICE046A 0 SORT CAPACITY EXCEEDED - RECORD COUNT 37505288 ICE253I 0 RECORDS SORTED - PROCESSED: 37505288, EXPECTED: 612 ICE098I 0 AVERAGE RECORD LENGTH - PROCESSED: 1486, EXPECTED: 16336 Dummy out or comment out the SORTWK DD statements. Then you get dynamic allocation. On Wed, Jul 29, 2020

SORT Capacity Exceeded

2020-07-29 Thread Richards, Robert B.
I am out of my element trying to figure out the following SORT issue. Job runs normally when the number of SORTIN records is much less. JCL contains 16 SORTWK datasets. If memory serves, isn't there a way to let SORT figure out how much it needs? ICE000I 1 - CONTROL STATEMENTS FOR 5650-ZOS, Z

Re: Sort Jcl to build a Update table control card

2020-07-02 Thread Ron Thomas
Thanks a bunch Kolusu.. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Re: Sort Jcl to build a Update table control card

2020-07-01 Thread Sri h Kolusu
>>fyi , we are using DFSORT and not Syncsort . Well that is good news. On that note then here is the solution. //STEP0100 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD * US1234567897272 //SORTOUT DD SYSOUT=* //SYSINDD * OPTION COPY OUTFIL BUILD=(C'UPDATE K1GHGMT.RTALABLE_I

Re: Sort Jcl to build a Update table control card

2020-07-01 Thread Ron Thomas
ok thanks a lot Kolusu.fyi , we are using DFSORT and not Syncsort . Regards Ron T -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Re: Sort Jcl to build a Update table control card

2020-07-01 Thread Sri h Kolusu
> Could some let me know how this can be done using SORT (DFSORT) jcl. Ron, Your shop has other competitive product to DFSORT and yet you request the solution for DFSORT. The control cards may run fine with both products, but the least you can do is mention the right product. Moreo

Sort Jcl to build a Update table control card

2020-07-01 Thread Ron Thomas
ulled from the file ) UPDATE K1GHGMT.RTALABLE_ITKM_SG SET LAST_CHG_TIMESTAMP = CURRENT TIMESTAMP , LAST_CHANGE_USERID = 'WKYT' WHERE COUNTRY_CODE = ? and PLU_ITEM_NBR =? and item_nbr = ? commit ; Could some let me know how this can be done using SORT (DFSORT) jcl. Reg

Re: Sort extracting values in PDS members

2020-06-03 Thread Billy Ashton
Hi Kolusu, I was finally able to get to this, and it works great for what I need! Thanks! Billy -- Original Message -- From: "Sri h Kolusu" To: IBM-MAIN@listserv.ua.edu Sent: 5/27/2020 7:30:48 PM Subject: Re: Sort extracting values in PDS members Billy, On second though

Re: Sort extracting values in PDS members

2020-05-28 Thread Wayne Bickerdike
tp://mason.gmu.edu/~smetz3 > > > From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf > of Wayne Bickerdike [wayn...@gmail.com] > Sent: Thursday, May 28, 2020 5:36 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Sort e

Re: Sort extracting values in PDS members

2020-05-28 Thread Seymour J Metz
@LISTSERV.UA.EDU Subject: Re: Sort extracting values in PDS members Sri, A MODEL SORT in ISPF would be good. I often use the other templates. On Fri, May 29, 2020, 03:29 Sri h Kolusu wrote: > > And rote learning makes running ISPF in batch (or from OMVS) > > easy the second and subsequent

Re: Sort extracting values in PDS members

2020-05-28 Thread Wayne Bickerdike
Sri, A MODEL SORT in ISPF would be good. I often use the other templates. On Fri, May 29, 2020, 03:29 Sri h Kolusu wrote: > > And rote learning makes running ISPF in batch (or from OMVS) > > easy the second and subsequent times. Copy, paste, and edit. > > Gil, > >

Re: Sort extracting values in PDS members

2020-05-28 Thread Sri h Kolusu
> And rote learning makes running ISPF in batch (or from OMVS) > easy the second and subsequent times. Copy, paste, and edit. Gil, Doesn't this hold good for DFSORT control cards?. If you categorize DFSORT control cards, there are just 4 of them. SORT/COPY INREC (can b

Re: Sort extracting values in PDS members

2020-05-28 Thread Paul Gilmartin
On Wed, 27 May 2020 20:15:43 -0700, Sri h Kolusu wrote: > >Thanks for sharing the REXX execs. couple of observations. > >1 The PDSTOSEQ fails processing members having aliases. (LISTDS does give >you the ALIAS information too) For example I tried with z/OS V2R4 >SYS1.MACLIB > > %PDSTOSEQ

Re: Sort extracting values in PDS members

2020-05-28 Thread Sri h Kolusu
> If all the control cards were compatible between SORT products that would > be a big help. Wayne, Most control statements are compatible between the 2 products that are in market today. It is just that products might have new functions that are not supported. But there are ways to get

Re: Sort extracting values in PDS members

2020-05-28 Thread Paul Gilmartin
On Thu, 28 May 2020 13:13:08 +1000, Wayne Bickerdike wrote: >*What happens if your PDS members contain IEBUPDTE control >statements?TRANSMIT is robust with respect to such things.-- gil* >Depends. If the IEBUPDTE directive is the same as the one generated, you >lose it. If it's different, you

Re: Sort extracting values in PDS members

2020-05-28 Thread Wayne Bickerdike
Sri, I agree with you. However, not all z/OS shops have DFSORT, a good number have Syncsort. I think CA-SORT has disappeared. If all the control cards were compatible between SORT products that would be a big help. I remember trying to port an Assembler E15 exit from a VSE shop (CA-SORT) to a z

Re: Sort extracting values in PDS members

2020-05-27 Thread Sri h Kolusu
DD SYSOUT=* //SYSUT1 DD DISP=SHR,DSN=SYS1.MACLIB //SYSUT2 DD DSN=&, //DISP=(,PASS), //SPACE=(CYL,(X,Y),RLSE) //SYSINDD * PUNCH TYPORG=PO //* //STEP0200 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD DSN=&,DISP=SHR //SORTOUT DD DSN=, //

Re: Sort extracting values in PDS members

2020-05-27 Thread Wayne Bickerdike
*What happens if your PDS members contain IEBUPDTE control statements?TRANSMIT is robust with respect to such things.-- gil* Depends. If the IEBUPDTE directive is the same as the one generated, you lose it. If it's different, you lose it and you get a null member. If I care that much, I change

Re: Sort extracting values in PDS members

2020-05-27 Thread Paul Gilmartin
On Wed, 27 May 2020 22:01:34 -0400, David Spiegel wrote: >Have you ever heard of the famous PDSLOAD Program from the CBT Tape? >It can generate the control cards (IEBUPDTE-like) and even maintain ISPF >Statistics. > Doesn't IEBCOPY do that? Doesn't TRANSMIT/RECEIVE do that? Can an ISV depend

Re: Sort extracting values in PDS members

2020-05-27 Thread David Spiegel
Have you ever heard of the famous PDSLOAD Program from the CBT Tape? It can generate the control cards (IEBUPDTE-like) and even maintain ISPF Statistics. On 2020-05-27 21:39, Paul Gilmartin wrote: On Thu, 28 May 2020 11:13:26 +1000, Wayne Bickerdike wrote: I have used REXX to do this. One

Re: Sort extracting values in PDS members

2020-05-27 Thread Paul Gilmartin
On Thu, 28 May 2020 11:13:26 +1000, Wayne Bickerdike wrote: >I have used REXX to do this. One flavour uses IDCAMS REPRO, the other uses >EXECIO. > >It builds the member list from a LISTDS MEMBERS. > >It adds ./ADD IEBUPDTE statements to the flat file in order to move to >other systems. It's a

Re: Sort extracting values in PDS members

2020-05-27 Thread Wayne Bickerdike
Y " > RETURN CODE < " temp_rc > > temp_rc = 0 > temp_ftc = "" > > CALL end_expds > RETURN > > end_expds: > > " FREE DATASET('"user"."SEQFILE".EXPDS')" > >IF temp_grc = 0 THEN DO >

Re: Sort extracting values in PDS members

2020-05-27 Thread Wayne Bickerdike
t; > > > > On Thu, May 28, 2020 at 11:05 AM Lizette Koehler > wrote: > >> Personally I would use REXX and LM functions to read through PDS members >> and >> action them. >> >> I did that when I needed to update all Members in a PDS to insert some >>

Re: Sort extracting values in PDS members

2020-05-27 Thread Wayne Bickerdike
gement) functions work very well for this. > > Lizette > > > -Original Message- > From: IBM Mainframe Discussion List On Behalf > Of > Sri h Kolusu > Sent: Wednesday, May 27, 2020 3:08 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Sort extractin

Re: Sort extracting values in PDS members

2020-05-27 Thread Lizette Koehler
- From: IBM Mainframe Discussion List On Behalf Of Sri h Kolusu Sent: Wednesday, May 27, 2020 3:08 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Sort extracting values in PDS members ITschak, I already responded to this topic. Not sure where it went, but I did respond before your email. You can

Re: Sort extracting values in PDS members

2020-05-27 Thread Charles Mills
Amazing! Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Sri h Kolusu Sent: Wednesday, May 27, 2020 4:31 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Sort extracting values in PDS members Billy, On second thoughts, We can

Re: Sort extracting values in PDS members

2020-05-27 Thread Sri h Kolusu
Billy, On second thoughts, We can optimize to parse everything in a single parse. Use the following control cards //SYSINDD * OPTION COPY INCLUDE COND=(02,80,SS,EQ,C'KEYWORD1',OR, 02,80,SS,EQ,C'LONGKEYWORD2') INREC IFOUTLEN=80,

Re: Sort extracting values in PDS members

2020-05-27 Thread David Spiegel
From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Billy Ashton [bill00ash...@gmail.com] Sent: Wednesday, May 27, 2020 4:41 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Sort extracting values in PDS members Hi again! This group has been

Re: Sort extracting values in PDS members

2020-05-27 Thread ITschak Mugzach
h > > To: IBM-MAIN@LISTSERV.UA.EDU > > Date: 05/27/2020 02:51 PM > > Subject: [EXTERNAL] Re: Sort extracting values in PDS members > > Sent by: IBM Mainframe Discussion List > > > > I would start with creating a single file using a ISRSUPC (it wor

Re: Sort extracting values in PDS members

2020-05-27 Thread Sri h Kolusu
Just realized that Billy Ashton has sent the email to my id with CC to IBM-MAIN and I just hit "Reply" instead of "Reply All". Here is the response for the question Billy, SORT products do not have the ability to read all the members of a PDS, but there are other ways to

Re: Sort extracting values in PDS members

2020-05-27 Thread Sri h Kolusu
Development IBM Corporation IBM Mainframe Discussion List wrote on 05/27/2020 02:50:28 PM: > From: ITschak Mugzach > To: IBM-MAIN@LISTSERV.UA.EDU > Date: 05/27/2020 02:51 PM > Subject: [EXTERNAL] Re: Sort extracting values in PDS members > Sent by: IBM Mainframe Discussion List &g

Re: Sort extracting values in PDS members

2020-05-27 Thread Seymour J Metz
From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Billy Ashton [bill00ash...@gmail.com] Sent: Wednesday, May 27, 2020 4:41 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Sort extracting values in PDS members Hi again! This group has been so

Re: Sort extracting values in PDS members

2020-05-27 Thread ITschak Mugzach
, x/Linux & IBM I **| z/VM comming son * On Wed, May 27, 2020 at 11:41 PM Billy Ashton wrote: > Hi again! This group has been so helpful - especially Kolusu - and I > have one more question as I learn how to use SORT more creatively. > > I have a bunch of PDS files where I have

Sort extracting values in PDS members

2020-05-27 Thread Billy Ashton
Hi again! This group has been so helpful - especially Kolusu - and I have one more question as I learn how to use SORT more creatively. I have a bunch of PDS files where I have to read through each member and create some control cards based on the content in the member (due to the nature

Re: Can I do variable field-length blanking with SORT?

2020-01-09 Thread Massimo Biancucci
), then it would be > a 5 byte resize. > > //*** > //** CREATE SAMPLE DATA WITH LRECL=101 AND RECFM=FB** > //*** > //STEP0050 EXEC PGM=SORT > //SYSOUT DD SYSOUT=* > //SORTIN

Re: Can I do variable field-length blanking with SORT?

2020-01-08 Thread Sri h Kolusu
ant to handle LRECL (1 - 32760), then it would be a 5 byte resize. //*** //** CREATE SAMPLE DATA WITH LRECL=101 AND RECFM=FB** //*** //STEP0050 EXEC PGM=SORT //SYSOU

Re: Can I do variable field-length blanking with SORT?

2020-01-08 Thread Massimo Biancucci
Sri, your view is always important to us. The fix for 99 is not so difficult. Please "light us" with the trick. :D Max Il giorno mer 8 gen 2020 alle ore 15:09 Sri h Kolusu ha scritto: > > this could be a more useful version: > > Massimo, > > Peter mentioned that the input has a 2-byte zoned

Re: Can I do variable field-length blanking with SORT?

2020-01-08 Thread Sri h Kolusu
> this could be a more useful version: Massimo, Peter mentioned that the input has a 2-byte zoned decimal "data length" value which identifies the number of SIGNIFICANT columns. So the maximum value that a 2 byte zoned decimal can hold is 99. Your job fails as the arithmetic ends with a

Re: Can I do variable field-length blanking with SORT?

2020-01-08 Thread Massimo Biancucci
Peter, this could be a more useful version: //ST020 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD * H 05 COMMENT: "05" IS SIGNIFICANT DATA COLUMNS D 12345 XYZ ABC DEF D 45678 GHI JKL MNO H 10 D 1234567890 ABCDEFGHIJKL D 9876543210 MNOPQWRSTUVWXYZ /* //SORTOUT DD DSN=,DISP=(,PASS),

Re: Can I do variable field-length blanking with SORT?

2020-01-08 Thread Massimo Biancucci
Peter, I don't know how long is your record, assuming it's 80 and that the LL field in H record is between 1 and 99, this could be a solution: //SYSIN DD * INREC IFTHEN=(WHEN=GROUP,BEGIN=(1,1,CH,EQ,C'H'), PUSH=(81:3,2)) SORT FIELDS=COPY OUTREC IFTHEN=(WHEN=(1,1,CH,EQ,C'H'), BUILD

Can I do variable field-length blanking with SORT?

2020-01-07 Thread Farley, Peter x23353
D = data], data starts in column 3): H 05 COMMENT: "05" IS SIGNIFICANT DATA COLUMNS D 12345 D 45678 H 10 D 1234567890 D 9876543210 Obviously I can write a pretty simple script or program to accomplish this "data cleaning" operation, but I wondered if it would be possib

Re: Sort in a multitasking address space

2019-11-13 Thread Sri h Kolusu
> Won't DFSORT manage the SORTWORKs? Gil/John, Dave Betten already answered the question below. "You use SORTDD= in the parameter lists to pass a separate prefix for each sort. For example you might pass SORTDD=SRT1 for the first one, SORDD=SRT2 for the second, etc. That way each will

Re: Sort in a multitasking address space

2019-11-13 Thread John McKown
s space in which we would like to > >> call sort to sort somewhere around a half a million entries. > >> There is a possibility that more than one task might need to > >> call sort. Will this cause a problem if one task calls sort > >> while sort is active for another task?

Re: Sort in a multitasking address space

2019-11-12 Thread Paul Gilmartin
On Tue, 12 Nov 2019 12:43:26 -0600, John McKown wrote: >On Tue, Nov 12, 2019 at 12:18 PM Tom Marchant wrote: > >> We have a multitasking address space in which we would like to >> call sort to sort somewhere around a half a million entries. >> There is a possibility that

Re: Sort in a multitasking address space

2019-11-12 Thread David Betten
DB2 Utilities are a good example of this. They often execute multiple concurrent sorts. You use SORTDD= in the parameter lists to pass a separate prefix for each sort. For example you might pass SORTDD=SRT1 for the first one, SORDD=SRT2 for the second, etc. That way each will allocate SRT1WK

Re: Sort in a multitasking address space

2019-11-12 Thread John McKown
On Tue, Nov 12, 2019 at 12:18 PM Tom Marchant < 000a2a8c2020-dmarc-requ...@listserv.ua.edu> wrote: > We have a multitasking address space in which we would like to > call sort to sort somewhere around a half a million entries. > There is a possibility that more than one

Re: Sort in a multitasking address space

2019-11-12 Thread Seymour J Metz
equ...@listserv.ua.edu> Sent: Tuesday, November 12, 2019 1:18 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Sort in a multitasking address space We have a multitasking address space in which we would like to call sort to sort somewhere around a half a million entries. There is a possibility that more th

<    1   2   3   4   5   6   7   8   9   10   >