Re: DFSORT / SORT and value/necessity of FILSZ parameter

2024-07-21 Thread Sri Hari Kolusu
>> We use OPTION COPY. Eric, Option COPY does NOT require FILSZ parameter. It is required when SORTing data which helps in calculating the workspace required. DFSORT issues an informational message ICE118I when it couldn't determine the file size. https://www.ibm.com/docs/en/zos/2.5.0?top

Re: DFSORT / SORT and value/necessity of FILSZ parameter

2024-07-22 Thread Verwijs, Frederick F [NC]
- From: IBM Mainframe Discussion List On Behalf Of Sri Hari Kolusu Sent: Sunday, July 21, 2024 7:32 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: DFSORT / SORT and value/necessity of FILSZ parameter >> We use OPTION COPY. Eric, Option COPY does NOT require FILSZ parameter. It is required whe

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,

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=&SK,DISP=(,PA

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 negat

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
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-09 Thread Massimo Biancucci
32760), then it would be > a 5 byte resize. > > //*** > //** CREATE SAMPLE DATA WITH LRECL=101 AND RECFM=FB** > //*** > //STEP0050 EXEC PGM=SORT > //SYSOUT DD SYSOUT=* > //S

Eliminating duplicates (was: z/os 2.2 - help with sort/icetool)

2017-09-19 Thread Peter Hunkeler
>//TOOLCNTL DD * >OPTION NOEQUALS,DYNALLOC=(SYSDA,8) >SORT FIELDS=(104,4088,A),FORMAT=CH >SUM FIELDS=NONE >//* I always wondered why the function to simply eliminate duplicate records is hidden within the SUM function? This is awkward. Why isn't there a clear and stra

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. Moreover this

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
>>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.RTALA

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

Application change for ISAM effects wasRe: SORT not behaving consistently

2018-10-26 Thread Clark Morris
le >626-543-6132 Office ?=== NEW >robin...@sce.com > > >-Original Message- >From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On >Behalf Of Cameron Conacher >Sent: Friday, October 26, 2018 9:01 AM >To: IBM-MAIN@LISTSERV.UA.EDU >Subject:

AW: Re: ASCII vs. EBCDIC (was Re: On sort options ...)

2016-02-20 Thread Peter Hunkeler
> That would be "F" for EBCDIC, IIRC '5' for ASCII. ASCII digits are x'30' to x'39' so the zone part is '3' -- Peter Hunkeler -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listser

Re: Verify record cound against the file trailer [by SORT?]

2016-06-27 Thread Itschak Mugzach
a co-worker - some of his flat files have trailing > records stating the total record counter, e.g.: > > RECS=00567 > > The question is - what utility [I am guessing SORT should suffice] can he > use to verify the trailer counter against the actual number of records in >

Re: Verify record cound against the file trailer [by SORT?]

2016-06-27 Thread Sri h Kolusu
. If it is indeed counted then simply remove the ",START=0" on the INREC statement. Use the following JCL //STEP0100 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD * A B C D RECS=5 //SORTOUT DD SYSOUT=* //SYSINDD * OPTION COPY INREC OVERLAY=(81:SEQNUM,5,

Re: Verify record cound against the file trailer [by SORT?]

2016-06-27 Thread Victor Gil
trailer record is not counted as part of the record count. If it is indeed counted then simply remove the ",START=0" on the INREC statement. Use the following JCL //STEP0100 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD * A B C D RECS=5 //SORTOUT DD SYSOUT=* //S

Re: Verify record cound against the file trailer [by SORT?]

2016-06-27 Thread Farley, Peter x23353
lf Of Sri h Kolusu Sent: Monday, June 27, 2016 3:18 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Verify record cound against the file trailer [by SORT?] Victor Gil, It is quite simple to verify the number of records and validate it against the trailer record and if the record count match the re

Re: Verify record cound against the file trailer [by SORT?]

2016-06-27 Thread Alan Young
ur generous and expert assistance on this forum. Peter -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Sri h Kolusu Sent: Monday, June 27, 2016 3:18 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Verify record cound against the file trail

Re: Verify record cound against the file trailer [by SORT?]

2016-06-27 Thread Farley, Peter x23353
@LISTSERV.UA.EDU Subject: Re: Verify record cound against the file trailer [by SORT?] Hi Peter, The fine print in Syncsort documentation states NULLOFL only applies to non-SORTOUT OUTFIL statements. If I change the DD of SORTOUT to OUT1 and add a FNAMES=OUT1 parameter to the OUTFIL statement then I get a CC 4

Re: Verify record cound against the file trailer [by SORT?]

2016-06-27 Thread Sri h Kolusu
ey, Peter x23353" To: IBM-MAIN@LISTSERV.UA.EDU Date: 06/27/2016 04:03 PM Subject:Re: Verify record cound against the file trailer [by SORT?] Sent by:IBM Mainframe Discussion List Hi Sri, I am a colleague of Victor's, and the initial problem was not stated quite

Re: Verify record cound against the file trailer [by SORT?]

2016-06-28 Thread Farley, Peter x23353
Kolusu Sent: Monday, June 27, 2016 8:16 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Verify record cound against the file trailer [by SORT?] Peter, Your control cards looks good. I cannot comment on syncsort's NULLOFL behavior. I think Alan had already pointed the obvious. So you control

Re: Verify record cound against the file trailer [by SORT?]

2016-06-28 Thread Sri h Kolusu
om: "Farley, Peter x23353" To: IBM-MAIN@LISTSERV.UA.EDU Date: 06/28/2016 01:00 PM Subject:Re: Verify record cound against the file trailer [by SORT?] Sent by:IBM Mainframe Discussion List Thanks again Sri, your new version also worked as long as I changed the OUTF

Re: Verify record cound against the file trailer [by SORT?]

2016-06-28 Thread Farley, Peter x23353
9" for the trailer, not X'0999'). Peter -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Sri h Kolusu Sent: Tuesday, June 28, 2016 4:35 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Verify record cound against the file

Re: Verify record cound against the file trailer [by SORT?]

2016-06-28 Thread Sri h Kolusu
: "Farley, Peter x23353" To: IBM-MAIN@LISTSERV.UA.EDU Date: 06/28/2016 03:27 PM Subject:Re: Verify record cound against the file trailer [by SORT?] Sent by:IBM Mainframe Discussion List Many thanks once more Sri for your generous help. UFF was indeed the k

Re: Sort to show differences in a 2-file match

2014-11-18 Thread Tidy, David (D)
V.UA.EDU Subject: Sort to show differences in a 2-file match Hi Sri et al., I have 2 files that I would like to compare, file "A" has 5 records, and file "B" only a subset of that - maybe 1000 records. They have the same key (pos 1, len 24), but are not unloaded in key order.

Re: Sort to show differences in a 2-file match

2014-11-18 Thread Bill Ashton
I just realized I made a crucial mistake on the summary I sent earlier.If I followed those requirements, I would have a huge file of "mismatches" for the superset from File B. So let me restate my goal again - correctly this time! I know I can sort them in one step to fix that problem,

Re: Sort to show differences in a 2-file match

2014-11-18 Thread Lizette Koehler
With ICETOOL you can select and send duplicates and unique values to different DD statements http://www-01.ibm.com/support/docview.wss?uid=isg3T797 Check out the mini sort manual on this page.  Creating output data sets and displaying list data sets for records with duplicate values, non

Re: Sort to show differences in a 2-file match

2014-11-18 Thread Tidy, David (D)
Hi Billy, Typically for the first (records in B, not in A), I do the same sort of thing including A in the sortin concatenation twice, and B once, thus getting rid of all duplicate records by discarding all of A and the matches in B (based on full record length). For the records in A with

Re: Sort to show differences in a 2-file match

2014-11-18 Thread Martin Packer
+44-7802-245-584 email: martin_pac...@uk.ibm.com Twitter / Facebook IDs: MartinPacker Blog: https://www.ibm.com/developerworks/mydeveloperworks/blogs/MartinPacker From: "Tidy, David (D)" To: IBM-MAIN@LISTSERV.UA.EDU Date: 18/11/2014 13:32 Subject:Re: Sort to show di

Re: Sort to show differences in a 2-file match

2014-11-18 Thread Bill Ashton
de Banking Center of Excellence, IBM > > +44-7802-245-584 > > email: martin_pac...@uk.ibm.com > > Twitter / Facebook IDs: MartinPacker > Blog: > https://www.ibm.com/developerworks/mydeveloperworks/blogs/MartinPacker > > > > From: "Tidy, David (D)" > To:

Re: Sort to show differences in a 2-file match

2014-11-18 Thread Sri h Kolusu
Y IN F1 RECORD FOUND ONLY IN F2 KEY MATCH DATA MISMATCH You will find this text at the end of each record. ie. at position 2525. //STEP0100 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //INA DD DISP=SHR,DSN=Your Input 2524 File A //INB DD DISP=SHR,DSN=Your Input 2524 File B //SORTOUT DD SY

Re: Sort to show differences in a 2-file match

2014-11-18 Thread Bill Ashton
> match. So use the following DFSORT JCL which will give you the desired > results. I added a 23 byte text to denote how the mismatch occurred. > > RECORD FOUND ONLY IN F1 > RECORD FOUND ONLY IN F2 > KEY MATCH DATA MISMATCH > > You will find this text at the end of each re

Re: Sort to show differences in a 2-file match

2014-11-18 Thread Sri h Kolusu
Subject:Re: Sort to show differences in a 2-file match Sent by:IBM Mainframe Discussion List Thanks so much, Sri. This works fine to accomplish my first goal...In my correction afterward, I realized I will always have more records in F1 (INA) that will not be in F2 (INB). How can

Re: Sort to show differences in a 2-file match

2014-11-18 Thread Bill Ashton
IBM-MAIN@LISTSERV.UA.EDU > Date: 11/18/2014 10:07 AM > Subject:Re: Sort to show differences in a 2-file match > Sent by:IBM Mainframe Discussion List > > > > Thanks so much, Sri. This works fine to accomplish my first goal...In my > correction afterward, I r

Re: Sort to show differences in a 2-file match

2014-11-18 Thread Sri h Kolusu
/18/2014 11:21:59 AM: > From: Bill Ashton > To: IBM-MAIN@LISTSERV.UA.EDU > Date: 11/18/2014 11:22 AM > Subject: Re: Sort to show differences in a 2-file match > Sent by: IBM Mainframe Discussion List > > Thanks, Sri, it works exactly as needed. I will have to look up some of > t

Re: Sort to show differences in a 2-file match

2014-11-18 Thread Bill Ashton
THEN=(WHEN=(5049,1,CH,EQ,C'1'), > BUILD=(0001,2524,C'RECORD FOUND ONLY IN F1')), > > Thanks, > Kolusu > DFSORT Development > IBM Corporation > > IBM Mainframe Discussion List wrote on > 11/18/2014 11:21:59 AM: > > > From: Bill Ashton > >

Re: DF/SORT, use parsed field as the sequence field ?

2013-01-22 Thread John McKown
I'm no expert! But it occurs to me that perhaps you could use the INREC to put the parsed data into a fixed location and SORT on that location. The use the OUTREC to strip out that inserted data. I have no idea if this is workable or not. I just thought I'd throw it into the ring. On T

Re: DF/SORT, use parsed field as the sequence field ?

2013-01-22 Thread Sri h Kolusu
PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD * +1+2+3+4+5+6+7- SOMETHINGZZZELSE SOMETHINGBELSE SOMETHINGAELSE //SORTOUT DD SYSOUT=* //SYSINDD * INREC PARSE=(%22=(STARTAFT=C'SOMETHING',ENDBEFR=C'ELSE)',

Re: DF/SORT, use parsed field as the sequence field ?

2013-01-22 Thread Tony B. AOL Mozilla
BUILD statement.. Check this link which explains the order of processing for DFSORT http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA60/1.5.4? Example //STEP0100 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD * +1+2+3+4+5+

Re: DF/SORT, use parsed field as the sequence field ?

2013-01-22 Thread Tony B. AOL Mozilla
in handy in the future. On 1/22/2013 12:05 PM, John McKown wrote: I'm no expert! But it occurs to me that perhaps you could use the INREC to put the parsed data into a fixed location and SORT on that location. The use the OUTREC to strip out that inserted data. I have no idea if this is wor

Re: SORT one input to 3 output files - different orders

2015-08-03 Thread Binyamin Dissen
n" file that I need to add to 3 different "master" :>files. The master files are in 3 different sequences, so I can't just sort :>the trans file and MOD it to the end. Also, because I don't know which day :>of this week the file will come in, I need to run th

Re: SORT one input to 3 output files - different orders

2015-08-03 Thread Sri h Kolusu
Bill, Are all Input files of the same LRECL and RECFM? If so we can accomplish the task in a Single pass of the data and sort the accordingly. There is a trick to get it done. Let me know the attributes of all the input file and desired output file attributes and I will show you a way to do it

Re: SORT one input to 3 output files - different orders

2015-08-03 Thread Bill Ashton
Hi Kolusu...yes, all the master files and the trans files are 90 bytes FB. Each record has multiple pieces of data, with the three master files being sorted on their respective "key". I did make one little error earlier, by forgetting that two of the files have compound keys... so here i

Re: SORT one input to 3 output files - different orders

2015-08-03 Thread Sri h Kolusu
Bill, The trick is to concatenate the master file 3 times but have a header file to distinguish the file and put the key values to be sorted at a common place. (usually at the end) So the largest sort key is from file 2 which has 9 + 8 = 17 bytes and the smallest sort key is from file3 which

Re: SORT one input to 3 output files - different orders

2015-08-04 Thread Bill Ashton
great. Billy On Mon, Aug 3, 2015 at 5:25 PM, Sri h Kolusu wrote: > Bill, > > The trick is to concatenate the master file 3 times but have a header file > to distinguish the file and put the key values to be sorted at a common > place. (usually at the end) > > So the lar

Re: DFSORT- SORT OUT FILE Sequence is not in order

2021-11-11 Thread Massimo Biancucci
EMP,DISP=(,PASS),SPACE=(TRK,(10,10),RLSE) //OUT DD SYSOUT=* //CTL1CNTL DD * INREC FIELDS=(1,80,SEQNUM,4,BI) SORT FIELDS=(1,80,BI,A),EQUALS SUM FIELDS=NONE /* //CTL2CNTL DD * SORT FIELDS=(81,4,BI,A) OUTREC FIELDS=(1,80) /* //TOOLIN DD * SORT FROM(SORTIN) TO(TEMP) USING(CTL1) S

Re: DFSORT- SORT OUT FILE Sequence is not in order

2021-11-11 Thread Ron Thomas
Thanks a lot Massimo. It worked like a charm :) Thanks, Ron T -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Re: DFSORT- SORT OUT FILE Sequence is not in order

2021-11-11 Thread Hobart Spitz
Really How is your solution a single instruction? Here are single instruction solutions. "pipe < ddname=sortin | sort unique | > ddname=sortout" or "pipe < your.data | sort unique | > your.output or // EXEC PGM=PIPE,PARM='< your.data | sort unique | &g

Re: DFSORT- SORT OUT FILE Sequence is not in order

2021-11-11 Thread Sri h Kolusu
> Really How is your solution a single instruction? Hobart, I believe that Massimo's(who provided the solution) intention was "single pass of data" and not truly a single "instruction". Since OP wanted to retain the original order of the records after eliminating the duplicates, he needs a

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-23 Thread Sri h Kolusu
>> I have a 2-line header (column names, and column types) which indicates >> which are CHAR fields, but cannot figure out how to capture the information >> from the header to apply to the actual data lines. >> Is there a way to see which column type contains CHAR( -- each of the types >> is co

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-23 Thread Horacio Luis Villa
Hi, the last 3 columns are CHAR but you don't want them quoted? Don't know how to do it using SORT. I'd do it with Rexx. De: IBM Mainframe Discussion List en nombre de Don Johnson <02ee771a0785-dmarc-requ...@listserv.ua.edu> Enviado: m

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-23 Thread Robin Vowels
The list of attributes are obviously PL/I, and that suggests that PL/I could be the means of solving the problem. On 2022-03-24 08:20, Horacio Luis Villa wrote: Hi, the last 3 columns are CHAR but you don't want them quoted? Don't know how to do it using SORT. I'd

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-23 Thread Wayne Bickerdike
Hi, > > > > the last 3 columns are CHAR but you don't want them quoted? > > Don't know how to do it using SORT. I'd do it with Rexx. > > > > De: IBM Mainframe Discussion List en nombre > > de Don Johnson <02

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-23 Thread Wayne Bickerdike
The IBM sample REXX is here: https://www.ibm.com/docs/en/db2-for-zos/11?topic=examples-sample-db2-rexx-application The DRAW function builds this: INSERT INTO SAN_JOSE.DSN8B10.EMP ( "EMPNO" , "FIRSTNME" , "MIDINIT" , "LASTNAME" , "WORKDEPT" , "PHONENO" , "HIREDATE" , "JOB" , "EDLEVEL" , "SEX" , "

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-23 Thread Wayne Bickerdike
Hi Don, Since you have access to Broadcom software. Why don't you use your table as a Datasource utilizing Datacom Server and export to CSV from spreadsheet? On Thu, Mar 24, 2022 at 7:47 AM Don Johnson < 02ee771a0785-dmarc-requ...@listserv.ua.edu> wrote: > This is a post now to the listserv,

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-23 Thread Wayne Bickerdike
Ack, Export to CSV for MS-DOS only appears to work on Mac, not IBM PC. On Thu, Mar 24, 2022 at 7:47 AM Don Johnson < 02ee771a0785-dmarc-requ...@listserv.ua.edu> wrote: > This is a post now to the listserv, instead of the Google group. Sorry for > the duplication! > > Hi, I have a comma-delimi

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-23 Thread Wayne Bickerdike
Don, Microsoft Powershell will add quotes around a comma delimited field. However, it does it for all fields, not just Alphanumeric. It's a free download. This example command does the quote addition: import-csv C:\Users\wayne\Documents\book2.csv | export-csv C:\Users\wayne\Documents\book3.csv

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-24 Thread Don Johnson
vice-versa, if that makes parsing easier. As to the input file, it is VB, and the max data record length is 200 (so, VB-204). There are actually several files, but 200 is the longest. I could write a Rexx program to handle this, but if Sort could do it, it wo

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-24 Thread Don Johnson
Wayne, thanks for these great solution ideas - they give me other ideas, too. I might try the Datasource for Excel option for another need I have. The IBM DB2 Rexx is interesting, and I will have to see if I could adapt it to my Datacom table (at first blush, it seems too DB2-centric). Thanks a

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-24 Thread Wayne Bickerdike
t;NULL," or "N.N.," here. Another option is to convert ") N.N." > to ") NOT NULL" or vice-versa, if that makes parsing easier. > > As to the input file, it is VB, and the max data record length is 200 (so, > VB-204). There are actually several

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-24 Thread Sri h Kolusu
orporation -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN //STEP0100 EXEC PGM=SORT //SYSOUT

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-24 Thread Sri h Kolusu
>>"&F1","&F2","&F3","&F4",&F5,&F6 Wayne, Isn't this assuming that the first 4 columns are character and you are embedding the quotes ? Also did you delete off the first 2 records (the headers and column attributes) ? I believe Op's requirement is to determine the column attributes based on th

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-25 Thread Wayne Bickerdike
. Your sort solution is great though... On Fri, Mar 25, 2022 at 12:38 PM Sri h Kolusu wrote: > >>"&F1","&F2","&F3","&F4",&F5,&F6 > > Wayne, > > Isn't this assuming that the first 4 columns are character and y

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-25 Thread Wayne Bickerdike
I couldn't resist. Here's a REXX solution. Should work for any layout which is defined in the manner of the original request, although my test data only has the header in the first record. On Thu, Mar 24, 2022 at 7:47 AM Don Johnson < 02ee771a0785-dmarc-requ...@listserv.ua.edu> wrote: > Thi

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-26 Thread Sri h Kolusu
>> I couldn't resist. Here's a REXX solution. Wayne, Thanks for the Rexx exec. One change you may want to is that you don't have to check for 'DEC' as there can be other numeric formats like "smallinit" , "Integer" "Float" and different date and time fields. So checking for CHAR or VARCHAR sho

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-26 Thread Wayne Bickerdike
Thanks Sri. I did cut a corner but simple to add the other data types. On Sun, Mar 27, 2022, 02:52 Sri h Kolusu wrote: > >> I couldn't resist. Here's a REXX solution. > > Wayne, > > Thanks for the Rexx exec. One change you may want to is that you don't > have to check for 'DEC' as there can be

Re: Using SORT to add quotes around CHAR fields? (Listserv)

2022-03-29 Thread Don Johnson
Kolusu, thank you for putting this together. I am hopeful to be able to try it out today, but then will be away through next week. Let me ask one question here. Would it be easier if I changed the separator from a comma to a tilde? If so, then the output looks like this ITM_ID~DESC~SHORT_DESC~U_

SORT question: Extract varying length string adding suffix after string?

2022-04-02 Thread Farley, Peter x23353
I have a use case to extract a varying length string where I need to add both prefix and suffix constants to the selected string. The SORT PARSE operand doesn't seem to do the trick because the FIXLEN parameter to PARSE is required and the selected strings will be blank-padded to the F

ICETOOL / SORT capturing count of output records when using INCLUDE

2022-11-17 Thread Eric Verwijs
Hello, We're splitting very large datasets that have 3 years of client data into 3 smaller datasets containing a year of data each. Can COUNT can be used to determine the total number of records in the output files? I've not seen how and it seems only able to count the number of input records.

SORT - How can I put accumulated value on each output record

2017-02-12 Thread Minoru Massaki
121 120.4 127 134.2 . . . . . . . Output forth column is accumulated value with previous records values on 2nd column. Output 5th column is also accumulated value with previous records values on 3rd column. Can I make this kind of output by SORT? I really appreciate

Re: Eliminating duplicates (was: z/os 2.2 - help with sort/icetool)

2017-09-20 Thread Sri h Kolusu
> I always wondered why the function to simply eliminate duplicate > records is hidden within the SUM function? This is awkward. Why > isn't there a clear and straight forward keyword either on the > OPTION or on the SORT statement, such as NODUPLICATES/DUPLICATES? > Pe

Re: Eliminating duplicates (was: z/os 2.2 - help with sort/icetool)

2017-09-20 Thread Steve Smith
I'd say it's because eliminating duplicate records isn't really a core feature; it's just a useful by-product of the SUM function. Obviously, there's a world of divers requirements out there, but SORT focuses on cases where you want to combine information from duplicate k

Re: Application change for ISAM effects wasRe: SORT not behaving consistently

2018-10-27 Thread Jesse 1 Robinson
: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Clark Morris Sent: Friday, October 26, 2018 11:14 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Application change for ISAM effects wasRe: SORT not behaving consistently [Default] On 26 Oct 2018 09:45:46 -0700, in

Re: Application change for ISAM effects wasRe: SORT not behaving consistently

2018-10-27 Thread Charles Mills
That is not an uncommon sort of thought process and/or outcome. It's unfortunate but it is human nature. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Jesse 1 Robinson Sent: Saturday, October 27, 2018 12:30 PM To

OT: U.S. law for "loser pays" in patent lawsuits, sort of

2013-02-28 Thread John McKown
I know this is OT, but I hope it is of some interest to the majority of readers. http://arstechnica.com/tech-policy/2013/02/pissed-off-politicians-want-loser-pays-rule-for-patent-trolls/ -- This is a test of the Emergency Broadcast System. If this had been an actual emergency, do you really thi

Inquiry about extracting and counting msgid from operlog using sort program

2023-07-26 Thread Jason Cai
Dear All, I am writing to inquire about how to use the sort program on the mainframe to extract and count msgid from a day's operlog. I would appreciate your guidance and advice on this matter. Msgid is a keyword that identifies system messages. It usually consists of 7 letters and a n

Re: SORT question: Extract varying length string adding suffix after string?

2022-04-02 Thread Cameron Conacher
If I understand things correctly, you could use Squeeze (SQZ) to eliminate the embedded blanks. Something like SQZ=(SHIFT=LEFT). Maybe you will need another SORT step to squeeze the entire record? Thanks, ...Cameron From: IBM Mainframe Discussion List On Behalf Of Farley, Peter x23353

Re: SORT question: Extract varying length string adding suffix after string?

2022-04-02 Thread Farley, Peter x23353
Thanks a lot Cameron! SQZ=(VL) did the trick. BUILD=(1,4,C'PREFIX DATA:',%00,SQA=(VL),C':SUFFIX DATA') Peter -Original Message- From: IBM Mainframe Discussion List On Behalf Of Cameron Conacher Sent: Saturday, April 2, 2022 4:53 PM To: IBM-MAIN@LISTSERV.UA.E

Re: ICETOOL / SORT capturing count of output records when using INCLUDE

2022-11-17 Thread Sri h Kolusu
is quite simple to generate the output counts also in the same job. Use the following Job which will give you the desired results. //STEP0100 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD * +1+2+3+4+5+--- ABC98 DEF98 GHI9

Re: ICETOOL / SORT capturing count of output records when using INCLUDE

2022-11-17 Thread Sri h Kolusu
//SET YR02=99 //SET YR03=98 /* //STEP0100 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD * ABC98 DEF98 GHI98 XXX00 YYY00 ZZZ99 //OUT1 DD SYSOUT=* //OUT2 DD SYSOUT=* //OUT3 DD SYSOUT=* //REPORT DD SYSOUT=* //SYSINDD

Re: ICETOOL / SORT capturing count of output records when using INCLUDE

2022-11-18 Thread Verwijs, Frederick F [NC]
w...@hrsdc-rhdcc.gc.ca Telephone 613-415-5465 -Original Message- From: IBM Mainframe Discussion List On Behalf Of Sri h Kolusu Sent: November 17, 2022 5:59 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: ICETOOL / SORT capturing count of output records when using INCLUDE Eric, Here is another way

Re: ICETOOL / SORT capturing count of output records when using INCLUDE

2022-11-18 Thread Verwijs, Frederick F [NC]
.@hrsdc-rhdcc.gc.ca Téléphone 613-415-5465 Programmer Analyst, CPP, OAS, and Payment Solutions - Innovation, Information and Technology Branch Employment and Social Development Canada / Government of Canada frederick.verw...@hrsdc-rhdcc.gc.ca Telephone 613-415-5465 -Original Message

Re: ICETOOL / SORT capturing count of output records when using INCLUDE

2022-11-18 Thread Sri h Kolusu
>> Our input file is a tape variable block. Eric, Use the following control cards //SYSINDD *,SYMBOLS=JCLONLY OPTION COPY INCLUDE COND=(16,02,CH,EQ,C'&YR01',OR, 16,02,CH,EQ,C'&YR02',OR, 16,02,CH,EQ,C'&YR03') INREC OVERLAY=(1877:16,02,CHANGE=(3,C'&YR01',

Re: ICETOOL / SORT capturing count of output records when using INCLUDE

2022-11-22 Thread Verwijs, Frederick F [NC]
w...@hrsdc-rhdcc.gc.ca Telephone 613-415-5465 -Original Message- From: IBM Mainframe Discussion List On Behalf Of Sri h Kolusu Sent: November 18, 2022 7:52 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: ICETOOL / SORT capturing count of output records when using INCLUDE >> Our inpu

Re: Program invoked SORT, SMS managed //SORTOUT DD DSN=&&TEMP [EXTERNAL]

2021-04-30 Thread Feller, Paul
: IBM Mainframe Discussion List On Behalf Of PINION, RICHARD W. Sent: Friday, April 30, 2021 1:30 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Program invoked SORT, SMS managed //SORTOUT DD DSN=&&TEMP [EXTERNAL] I have what is probably an elementary question. I had a program invoked SORT ABEN

Re: Program invoked SORT, SMS managed //SORTOUT DD DSN=&&TEMP [EXTERNAL]

2021-04-30 Thread PINION, RICHARD W.
Doh! Yep, that explains it. Shame on me for not doing what you did. -Original Message- From: IBM Mainframe Discussion List On Behalf Of Feller, Paul Sent: Friday, April 30, 2021 3:13 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Program invoked SORT, SMS managed //SORTOUT DD DSN

Re: SORT - How can I put accumulated value on each output record

2017-02-12 Thread Bill Woodger
Yes, you can make this type of output with DFSORT. DFSORT has "reporting features" on OUTFIL. This provides SUBTOT/SUBTOTAL, which is to provide running-totals. SUBTOTAL is available on TRAILER1, TRAILER2 and TRAILER3. None of which do exactly what you want. If you look at what each does you'll

Re: SORT - How can I put accumulated value on each output record

2017-02-12 Thread Lizette Koehler
Which SORT tool do you have? Syncsort or DFSORT? Either one comes with the capability to do something like this. There is a DFSORT Hotline with IBM that you can also ask these types of questions. dfs...@us.ibm.com They are very helpful in creating SORT processes like this. If you have

Re: SORT - How can I put accumulated value on each output record

2017-02-12 Thread Bill Woodger
The Smart DFSORT Tricks doesn't have anything especially close. Search-engineing *will* provide something very close. But, as the obvious post itself suggests, understanding the code allows the same or similar techniques to be known and therefore available for other circumstances. Gives me a c

Re: SORT - How can I put accumulated value on each output record

2017-02-12 Thread Minoru Massaki
Woodger-san, Thank you very much for your useful guidance. I have never thought to use SUBTOTAL function yet. I'll try to make SORT control cards to produce SORTOUT data what I want to have. Koehler-san, Thank you for pointing out documents of DFSORT trics. I have to adapt to both DFSOR

Re: SORT - How can I put accumulated value on each output record

2017-02-13 Thread Sri h Kolusu
of 10 5. The summary fields are at position 35 for a length of 8 and position 45 for a length of 12. You can use the following JCL //STEP0100 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD * +1+2+3+4+5+ #001 1 10.5 #002

Re: SORT - How can I put accumulated value on each output record

2017-02-13 Thread Minoru Massaki
Kolusu-san, Thank you very much for providing the SORT JCL. Your SORT is more elegant and flexible than I made. What I made SORT control cards based on Woodger-san's suggestion is following. //ACCUM EXEC PGM=ICEMAN //SYSOUT DD SYSOUT=* //SORTIN DD * #001 1 10.5 #002

AW: Re: Eliminating duplicates (was: z/os 2.2 - help with sort/icetool)

2017-09-20 Thread Peter Hunkeler
Obviously, there's a world of divers requirements out there, but SORT focuses on cases where you want to combine information from duplicate keys, not just ignore them. But they did implement the feature with SUM=NONE, didn't they? I'm n

SORT JOIN help needed - matched F2 only plus unmatched F2 hdr/trlr?

2018-09-17 Thread Farley, Peter x23353
a trailer (assume a key of all 9's) that never match. Key length is 7 bytes. This (modified) example from the PDF will get me the UN-matched F2 records: //JK8 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //IN1 DD DSN=... input file1 (FB/40) //IN2 DD DSN=... input file2 (VB/1000) //SORTOUT DD DSN

DF/Sort: removing a column from fixed records of any length (UNCLASSIFIED)

2013-11-07 Thread Storr, Lon A CTR USARMY HRC (US)
Classification: UNCLASSIFIED Caveats: NONE Hello List, Is there a way to remove the first column of data from a fixed record without specifying the length of the data to be retained? Several dozen files are generated several times a day, all have RECFM=FB and various LRECLs. Every record in eac

Migration from Ca-sort to Dfsort (z/os) : any experience or paper ?

2013-12-04 Thread Denis Manach
Hi, We run z/os 1.13 with ca-sort 7.1 (a Computer Associates product). This sort software is discontinued since January 30, 2012 and I’m trying to evaluate the project of migration to dfsort in order to be full compatible and supported when z/os 2.1 will come. Before starting migration, I

Re: Inquiry about extracting and counting msgid from operlog using sort program

2023-07-26 Thread Kevin Mckenzie
List on behalf of Jason Cai Date: Wednesday, July 26, 2023 at 4:19 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: [EXTERNAL] Inquiry about extracting and counting msgid from operlog using sort program Dear All, I am writing to inquire about how to use the sort program on the mainframe to extract

Re: Inquiry about extracting and counting msgid from operlog using sort program

2023-07-26 Thread Sri h Kolusu
2,3,4,5,6,7,8,9'),AND, (66,1,SS,EQ,C'ABCDEFGHIJKLMNOPQRSTUVWXYZ')),OR, (58,10,SS,NE,C' ',AND, 68,1,CH,EQ,C' ',AND, (66,1,SS,EQ,C'0,1,2,3,4,5,6,7,8,9'),AND, (67,1,SS,EQ,C'A

<    5   6   7   8   9   10   11   >