I need to searh a bill id (which is to be picked from one file) and search in the whole input file. If that bill id is found in input file then all the records with thta bil id should be removed from input files.
Joined: 18 Feb 2006 Posts: 812 Location: San Jose, CA
Posted: Wed Apr 25, 2012 11:05 pm Post subject:
You need to give a clearer description of exactly what it is you want to do before anyone can help you.
Please show an example of the records in each input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input files. If file1 can have duplicates within it, show that in your example. If file2 can have duplicates within it, show that in your example.
Depending on exactly what you want to do, you might want to use DFSORT's JOINKEYS function or some other DFSORT function. You can find plenty of examples online. The DFSORT doc can be accessed from:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum