MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Removing Headers and trailers without change in cobolprogram

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
s_marupudi
Beginner


Joined: 03 Apr 2006
Posts: 3
Topics: 2

PostPosted: Sat Dec 09, 2006 12:36 am    Post subject: Removing Headers and trailers without change in cobolprogram Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Sat Dec 09, 2006 8:19 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Sat Dec 09, 2006 11:38 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
s_marupudi
Beginner


Joined: 03 Apr 2006
Posts: 3
Topics: 2

PostPosted: Mon Dec 11, 2006 4:39 am    Post subject: Removing Headers and trailers Reply with quote

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
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Mon Dec 11, 2006 5:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Mon Dec 11, 2006 11:50 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
tcgplayer
Beginner


Joined: 06 Jun 2006
Posts: 5
Topics: 1

PostPosted: Tue Jan 30, 2007 7:08 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Jan 30, 2007 9:52 am    Post subject: Reply with quote

tcgplayer,

Please search before posting. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=5166&highlight=first+last+skip

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tcgplayer
Beginner


Joined: 06 Jun 2006
Posts: 5
Topics: 1

PostPosted: Wed Jan 31, 2007 6:39 am    Post subject: Reply with quote

thx kolusu! cheers Surprised
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group