View previous topic :: View next topic |
Author |
Message |
s_marupudi Beginner
Joined: 03 Apr 2006 Posts: 3 Topics: 2
|
Posted: Sat Dec 09, 2006 12:36 am Post subject: Removing Headers and trailers without change in cobolprogram |
|
|
I have one output file created by cobol program which is with headers and trailers.But i want that file to be without headers and trailers and without changing the program.Is it possible to do the same in JCL? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Sat Dec 09, 2006 8:19 am Post subject: |
|
|
s_marupudi,
You can remove the header and trailers using sort. Is there a way to identify the header or trailer?
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Sat Dec 09, 2006 11:38 am Post subject: |
|
|
s_marupudi,
Please show an example of the input records with headers and trailers and the output without headers and trailers. Please indicate the RECFM and LRECL of the file. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|
Back to top |
|
|
s_marupudi Beginner
Joined: 03 Apr 2006 Posts: 3 Topics: 2
|
Posted: Mon Dec 11, 2006 4:39 am Post subject: Removing Headers and trailers |
|
|
Frank/Kolusu,
RECFM=FBA,LRECL=133.
Code: |
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
********************************* Top of Data **********************************
1 WDMMSD46
11/03/2006
SHIP DIRECT INITIAL ORDER EFFECTIVE AVAILA
0 FOR THE MONTH ENDING: 10/2006
VEHICLE: 06C B RENDEVOUS
PREV STD SOP SOURCE YTD
DECK SOURCE PERF SVC IND PART NUMBER AWC INVENTORY SALES
560 01401 95.6 24 Y 19120419 SPS 0 6
SOP SUBTOTAL 6
557 05243 99.9 48 N 19152561 SPS 0 0
|
Please give me your inputs.
Thanks |
|
Back to top |
|
|
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Mon Dec 11, 2006 5:31 am Post subject: |
|
|
s_marupudi
Is header identified by 1 WDMMSD46 and trailer by 557 05243 99.9 48 N 19152561 SPS 0 0 ? _________________ Shekar
Grow Technically |
|
Back to top |
|
|
Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Mon Dec 11, 2006 11:50 am Post subject: |
|
|
Quote: | Please show an example of the input records with headers and trailers and the output without headers and trailers |
You just showed the input. I asked you to also show the output so we can see how the headers and trailers can be identified. You didn't show the output or identify the headers and trailers. Please identify the headers and trailers. Do they change from run to run? Is there something that always identifies them (e.g. 'xxxx' in position n, or first n records and last n records?). _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|
Back to top |
|
|
tcgplayer Beginner
Joined: 06 Jun 2006 Posts: 5 Topics: 1
|
Posted: Tue Jan 30, 2007 7:08 am Post subject: |
|
|
just a follow-up question... regardless of the output how can you eliminate the first and the last record w/c in most cases the header and the footer of the file? it's simple as it is. thx for the answers |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
tcgplayer Beginner
Joined: 06 Jun 2006 Posts: 5 Topics: 1
|
Posted: Wed Jan 31, 2007 6:39 am Post subject: |
|
|
thx kolusu! cheers |
|
Back to top |
|
|
|
|