IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SYNCSORT Report Header


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ballaswaroop

New User


Joined: 20 Sep 2005
Posts: 25

PostPosted: Thu Nov 01, 2007 3:31 pm
Reply with quote

I have a file where in I need to include the header which is more then 113 characters long. When I used the DCB parameter as FB and Lrecl as 170 it is giving me the following error

WER108I SORTIN : RECFM=FB ; LRECL= 112; BLKSIZE= 2240
WER110I SORTOUT : RECFM=FB ; LRECL= 112; BLKSIZE= 2240
WER110I RPT3 : RECFM=FBA ; LRECL= 170; BLKSIZE= 27880
WER247A RPT3 HAS INCOMPATIBLE LRECL


My Input Jcl is as follows.

Code:

/SORT001 EXEC PGM=SORT
/SORTIN  DD DSN=APG.INV.COST.TP.FIN.G0210V00,DISP=SHR
/RPT3    DD DSN=GT0472.KEEP.INV.COST.TP.FIN,
/           DISP=(NEW,CATLG,DELETE),
/           UNIT=SYSDA,SPACE=(CYL,(10,05),RLSE),
/          DCB=(LRECL=170,RECFM=FBA)
/SORTOUT DD SYSOUT=*
/SYSIN    DD *
    SORT FIELDS=COPY
    OUTFIL FNAMES=RPT3,REMOVECC,
    HEADER2=('ID','/',
             'SEQNUM',',',
             'PART NUMBER',',',
             'DESCRIPTION',',',
             'OPERATION',',',
              'OPS-MISS',',',
              'AREA',',',
              'LOCATION',',',
              'QTY',',',
              'NEW MATERIAL',',',
              'NEW MACH LABOR',',',
              'NEW ASSY LABOR',',',
              'OLD MATERIAL',',',
              'OLD MACH LABOR',',',
              'OLD ASSY LABOR')
/*
//SYSOUT  DD SYSOUT=*
//SYPRINT DD SYSOUT=*
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Nov 01, 2007 6:00 pm
Reply with quote

Swaroop,

Since you included REMOVECC in the sort card..... change the recfm of RPT3 to FB. FBA is an invalid one.
Back to top
View user's profile Send private message
ballaswaroop

New User


Joined: 20 Sep 2005
Posts: 25

PostPosted: Thu Nov 01, 2007 8:29 pm
Reply with quote

When I changed the fotmat to FB this is the error that I am getting.

WER108I SORTIN : RECFM=FB ; LRECL= 112; BLKSIZE= 2240
WER110I SORTOUT : RECFM=FB ; LRECL= 112; BLKSIZE= 2240
WER110I RPT3 : RECFM=FB ; LRECL= 170; BLKSIZE= 17000
WER107A RPT3 RECFM INCOMPATIBLE WITH REPORT WRITING
WER247A RPT3 HAS INCOMPATIBLE LRECL
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Fri Nov 02, 2007 10:53 am
Reply with quote

icon_arrow.gif Comment out your DCB parameter for RPT3 and give a try.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Nov 02, 2007 11:42 am
Reply with quote

Swaroop,

Check wheter your I/P and RPT3 files attirbs are equal.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Need help on formatting a report DFSORT/ICETOOL 14
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
Search our Forums:

Back to Top