Hi
I have a file which has 7 millions records. I need to extract records based on some data condition . The Data condition combination are about 50. The rest of the records needs to be in a diff file. I am doing like this below. Is there a simple way
Joined: 31 Aug 2005 Posts: 39 Location: St Paul,MN
The OMIT condition will cause all the records other than the records that satisfy the condition to be written into the output file. SAVE will cause the files that were not written into the COND files to be written into this file.
Please check your data to make sure that there are records that satisfy the OMIT condition in the file. Only in that case records will be written into your SORTFL2.
Prettymuch what I posted in 3 is the total sort step output.
Again the same as below
Code:
******************************** Top of Data ***********************************
SYNCSORT FOR Z/OS 1.2.3.0R U.S. PATENTS: 4210961, 5117495 (C) 2005 SYNCSO
z/OS 1.7.0
PRODUCT LICENSED FOR CPU SERIAL NUMBER 20F9E, MODEL 2084 304 LICEN
SYSIN :
SORT FIELDS=(133,5,CH,A,138,3,CH,A,141,3,CH,A)
OUTFIL FNAMES=SORTFL1
OMIT COND=((133,5,CH,EQ,C'H6717'),OR,(133,5,CH,EQ,C'H7254'),OR,
(133,5,CH,EQ,C'H9016'),OR,(133,5,CH,EQ,C'H9418'),OR,
(133,11,CH,EQ,C'H2320004001'),OR,
(133,11,CH,EQ,C'H2320004002'),OR,
(133,11,CH,EQ,C'H2320004003'),OR,
(133,11,CH,EQ,C'H2320005001'),OR,
(133,11,CH,EQ,C'H2320005002'),OR,
(133,11,CH,EQ,C'H2320005003'),OR,
(133,11,CH,EQ,C'H5849001001'),OR,
(133,11,CH,EQ,C'H5849001002'),OR,
(133,11,CH,EQ,C'H5849001003'))
OUTFIL FNAMES=SORTFL2,SAVE
WER108I SORTIN : RECFM=FB ; LRECL= 466; BLKSIZE= 27960
WER110I SORTFL1 : RECFM=FB ; LRECL= 466; BLKSIZE= 27960
WER110I SORTFL2 : RECFM=FB ; LRECL= 466; BLKSIZE= 27960
WER045C END SORT PHASE
WER055I INSERT 0, DELETE 1157
WER418I DATASPACE(S) AND/OR HIPERSPACE(S) USED
WER405I SORTFL1 : DATA RECORDS OUT 2604122; TOTAL RECORDS OUT 2604122
WER405I SORTFL2 : DATA RECORDS OUT 0; TOTAL RECORDS OUT 0
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
WER246I FILESIZE 1,213,520,852 BYTES
WER054I RCD IN 2605279, OUT 2604122
WER072I NOEQUALS IN EFFECT
WER169I RELEASE 1.2 BATCH 0454 TPF LEVEL 3.0
WER052I END SYNCSORT - M3CQSOT1,STEP1,,DIAG=F900,FB5B,C01A,A4DD,A1F6,4CE3,8348
******************************* Bottom of Data ********************************
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
Hello,
FWIW, the same thing happens on this system.
I've used different input, but have tried many combinations of control statements and the SAVE never does. . . The SAVE can be the first OUTFIL or some other, but no records are written to that dataset. Also tried FILES with the same result.
WER108I SORTIN : RECFM=FB ; LRECL= 80; BLKSIZE= 80
WER110I SORTF1 : RECFM=FB ; LRECL= 80; BLKSIZE= 27920
WER110I SORTF2 : RECFM=FB ; LRECL= 80; BLKSIZE= 27920
WER045C END SORT PHASE
WER418I DATASPACE(S) AND/OR ZSPACE USED
WER405I SORTF1 : DATA RECORDS OUT 5; TOTAL RECORDS OUT 5
WER405I SORTF2 : DATA RECORDS OUT 3; TOTAL RECORDS OUT 3
WER416B OUTFIL WAS USED FOR SORTOUT
WER246I FILESIZE 640 BYTES
WER054I RCD IN 8, OUT 8
WER072I EQUALS IN EFFECT
Here u go....guess i am doing something different from the others.
I did use EQUALS in SORT but still the OMIT SAVE file is empty
SYNCSORT FOR Z/OS 1.2.3.0R U.S. PATENTS: 4210961, 5117495 (C) 2005 SYNCSO
z/OS 1.7.0
PRODUCT LICENSED FOR CPU SERIAL NUMBER 9798D, MODEL 2084 309 LICEN
SYSIN :
SORT FIELDS=(133,5,CH,A,138,3,CH,A,141,3,CH,A),EQUALS
OUTFIL FNAMES=SORTFL1
OMIT COND=((133,5,CH,EQ,C'H6717'),OR,(133,5,CH,EQ,C'H7254'),OR,
(133,5,CH,EQ,C'H9016'),OR,(133,5,CH,EQ,C'H9418'),OR,
(133,11,CH,EQ,C'H2320004001'),OR,
(133,11,CH,EQ,C'H2320004002'),OR,
(133,11,CH,EQ,C'H2320004003'),OR,
(133,11,CH,EQ,C'H2320005001'),OR,
(133,11,CH,EQ,C'H2320005002'),OR,
(133,11,CH,EQ,C'H2320005003'),OR,
(133,11,CH,EQ,C'H5849001001'),OR,
(133,11,CH,EQ,C'H5849001002'),OR,
(133,11,CH,EQ,C'H5849001003'))
OUTFIL FNAMES=SORTFL2,SAVE
WER108I SORTIN : RECFM=FB ; LRECL= 466; BLKSIZE= 27960
WER110I SORTFL1 : RECFM=FB ; LRECL= 466; BLKSIZE= 27960
WER110I SORTFL2 : RECFM=FB ; LRECL= 466; BLKSIZE= 27960
WER045C END SORT PHASE
WER055I INSERT 0, DELETE 1157
WER418I DATASPACE(S) AND/OR HIPERSPACE(S) USED
WER405I SORTFL1 : DATA RECORDS OUT 2604122; TOTAL RECORDS OUT 2604122
WER405I SORTFL2 : DATA RECORDS OUT 0; TOTAL RECORDS OUT 0
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
WER246I FILESIZE 1,213,520,852 BYTES
WER054I RCD IN 2605279, OUT 2604122
WER072I EQUALS IN EFFECT
WER169I RELEASE 1.2 BATCH 0454 TPF LEVEL 3.0
WER052I END SYNCSORT - M3CQSOT1,STEP1,,DIAG=9D00,DB1F,A010,E07D,C5FE,6883,2748
******************************* Bottom of Data ********************************
Also I tried to take out COND from OMIT it throws Snytax error. Is there any version problem here.
z/OS 1.7.0
PRODUCT LICENSED FOR CPU SERIAL NUMBER 9798D, MODEL 2084 309 L
SYSIN :
SORT FIELDS=(133,5,CH,A,138,3,CH,A,141,3,CH,A),EQUALS
OUTFIL FNAMES=SORTFL1
OMIT=((133,5,CH,EQ,C'H6717'),OR,(133,5,CH,EQ,C'H7254'),OR,
*
(133,5,CH,EQ,C'H9016'),OR,(133,5,CH,EQ,C'H9418'),OR,
*
(133,11,CH,EQ,C'H2320004001'),OR,
*
(133,11,CH,EQ,C'H2320004002'),OR,
*
(133,11,CH,EQ,C'H2320004003'),OR,
*
(133,11,CH,EQ,C'H2320005001'),OR,
*
(133,11,CH,EQ,C'H2320005002'),OR,
*
(133,11,CH,EQ,C'H2320005003'),OR,
*
(133,11,CH,EQ,C'H5849001001'),OR,
*
(133,11,CH,EQ,C'H5849001002'),OR,
*
(133,11,CH,EQ,C'H5849001003'))
*
OUTFIL FNAMES=SORTFL2,SAVE
WER268A OMIT STATEMENT : SYNTAX ERROR
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT