Hi,
I have dataset with millions of data. I just want to delete just 100 records from the dataset and i want to do it FILE-AID utility.
when was looking ahead in FILE-AID -> EDIT option and press enter it shows option for edit methods like below
Edit method ===> 2 (1 = Standard Edit; 2 = Windowed Edit)
If i choose option 1 -> Then i got error message "Insufficient storage" as Option 1 will load all the data into memory.
If i choose option 2 -> I cant delete records as options 2 does not support FILE-AID commands like INSERT,DELETE,REPEAT,SORT,COPY,MOVE,EXCLUDE
DELETE RECORDs from the DATASET
-
- Posts: 69
- Joined: Fri Oct 22, 2010 1:58 pm
- Skillset: JCL,
COBOL,
REXX,
VSAM,
DB2,
VM-COBOL,
BASIC- CICS,
EASYTRIEVE - Referer: Self-Discover
DELETE RECORDs from the DATASET
Regards,
Nanthu.Y.
Nanthu.Y.
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: DELETE RECORDs from the DATASET
OK. So? You cannot do it in File-aid. Use something else - a quick one-off program will probably do it faster than waiting for a debate on the forum to come up with an answer.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Posts: 69
- Joined: Fri Oct 22, 2010 1:58 pm
- Skillset: JCL,
COBOL,
REXX,
VSAM,
DB2,
VM-COBOL,
BASIC- CICS,
EASYTRIEVE - Referer: Self-Discover
-
- Posts: 279
- Joined: Fri Jul 18, 2008 7:46 pm
- Skillset: JCL,COBOL,DB2,IMS/DB,CICS,VSAM
- Referer: I was banned by superk in main forum so I am here
Re: DELETE RECORDs from the DATASET
You would use DROP function of File-Aid batch to remove records based on selection criteria.
Note: The DROP function is not an update-in-place. The input and output files cannot be the same file.
Example-1:This example copies all of the input dataset records and drops any record that does not contain a valid 7-byte packed field beginning in location 4.
Example:-2This example copies the input dataset to the output dataset, and stops after dropping the first 200 records containing a valid packed field of any length, that begins in location 15, and has an arithmetic value equal to 1 or 2.
HTH.
Note: The DROP function is not an update-in-place. The input and output files cannot be the same file.
Example-1:This example copies all of the input dataset records and drops any record that does not contain a valid 7-byte packed field beginning in location 4.
$$DD01 DROP IF=(4,7,NEP)
Example:-2This example copies the input dataset to the output dataset, and stops after dropping the first 200 records containing a valid packed field of any length, that begins in location 15, and has an arithmetic value equal to 1 or 2.
$$DD01 DROP IF=(15,EQ,P’1,2’),DROP=200
HTH.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 2328
-
by Robert Sample
View the latest post
Fri Feb 25, 2022 7:42 pm
-
- 1
- 5699
-
by enrico-sorichetti
View the latest post
Fri Dec 10, 2021 5:23 pm
-
-
strategy: partitioned table, delete millions of rows
by BobHarris » Wed Aug 17, 2022 2:47 pm » in DB2 - 1
- 1961
-
by engh
View the latest post
Tue Sep 20, 2022 1:56 pm
-
-
-
Issue Create/delete ALIAS IDC3013I and then IDC3012I
by jcdm » Thu Dec 05, 2024 9:26 pm » in VSAM/SMS - 1
- 1721
-
by willy jensen
View the latest post
Fri Dec 06, 2024 12:04 am
-
-
-
Insert records from File1 between records of File2
by Daouchiche » Wed Nov 10, 2021 6:37 am » in DFSORT/ICETOOL/ICEGENER - 6
- 2356
-
by sergeyken
View the latest post
Thu Nov 11, 2021 12:43 am
-