Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Remove first and last record using a sort card within the MainFrame forums, part of the Software Development category; How to remove first and last record using a sort card I have one input file. i want to remove the header and trailer from that file and file has ...
|
|||||||
|
|||
|
Remove first and last record using a sort card
How to remove first and last record using a sort card
I have one input file. i want to remove the header and trailer from that file and file has to be sorted. Please reply ASAP. |
| Sponsored Links |
|
|||
|
Re: Remove first and last record using a sort card
Usually header & tralier are identified by a record type usually first few bytes .. First identify by looking at the source code ,what is the unique identification & then use this sort card
INCLUDE COND=(1,2,CH,NE,C'00',or,1,2,CH,NE,C'99') Here if first 2 bytes are 00 or 88 , record would nto be copied |
|
|||
|
Re: Remove first and last record using a sort card
//SORTIP1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //* //IN DD * 20080910 HEADER 04 1234 05 ZEEBRA 20080910 TRAILER /* //OUT DD SYSOUT=* //TOOLIN DD * SUBSET FROM(IN) TO(OUT) INPUT REMOVE HEADER TRAILER //CTL1CNTL DD * SORT FIELDS=COPY /* We can also use Header(n) Trailer(n) to remove n records |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| control card | murthyksrc | MainFrame | 1 | 04-20-2009 07:07 AM |
| Remove an application without "uninstall/Remove" option | anushya | Windows | 8 | 12-10-2008 06:32 PM |
| Remove duplicates using sort and aggregator | lazydev | Data Warehousing | 0 | 03-28-2008 07:18 AM |
| Credit Card Application | maddali1982 | Testing Issues | 2 | 03-05-2008 01:38 AM |
| how can i sort numbers in an array with out Arrays.sort()? | ramakris143 | Java | 0 | 11-14-2007 09:52 AM |