Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SYNCSORT Report Header

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ballaswaroop

New User


Joined: 20 Sep 2005
Posts: 24

PostPosted: Thu Nov 01, 2007 3:31 pm    Post subject: SYNCSORT Report Header
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: 1439
Location: Bangalore,India

PostPosted: Thu Nov 01, 2007 6:00 pm    Post subject:
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: 24

PostPosted: Thu Nov 01, 2007 8:29 pm    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Fri Nov 02, 2007 11:42 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 2 Mon Mar 27, 2017 3:59 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us