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
 

 

Problem with SYNCSORT report writing

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

New User


Joined: 18 Aug 2006
Posts: 45

PostPosted: Thu Apr 05, 2007 4:35 pm    Post subject: Problem with SYNCSORT report writing
Reply with quote

Hi all,

I wrote a jcl for generating a simple report using SYNCSORT.The code

Code:
                                     
//PS010  EXEC PGM=SORT                                             
//SYSOUT   DD SYSOUT=*                                             
//SORTIN   DD DSN=B052AKN.XSCM201.SCXFILE3,DISP=SHR                 
//REPTOUT  DD SYSOUT=*                                             
//SYSIN    DD *                                                     
  INCLUDE COND=(31,1,CH,EQ,C'S')                                   
  SORT FIELDS=(45,2,ZD,A)                                           
  SUM FIELDS=(94,6,PD)                                             
  OUTFIL FNAMES=REPTOUT,LINES=12,                                   
  HEADER2=(3:'CATEGORY',18:'PAY-AMT',/),                           
  OUTREC=(3:45,2,ZD,EDIT=(IIIT),18:94,6,PD,EDIT=(IITT.TT),30:X,/), 
  TRAILER2=(/,3:'--------',18:'-------',/,                         
    3:'TOTALS',18:TOT=(94,6,PD,EDIT=(ITTTT.TT)),/)                 
/*   


The problem i am facing is in REPTOUT ddname i am not able to give PDS name because its is giving the following error

25,648K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
0 BYTES RESERVE REQUESTED, 2M BYTES USED
SORTIN : RECFM=FB ; LRECL= 550; BLKSIZE= 27500
OUTREC RECORD LENGTH = 8
REPTOUT RECFM=F/FB, LRECL/BLKSIZE INVALID
REPTOUT RECFM INCOMPATIBLE WITH REPORT WRITING
REPTOUT : RECFM=FB ; LRECL= 133; BLKSIZE= 27500
REPTOUT HAS INCOMPATIBLE LRECL
CONVERT FEATURE CANNOT BE USED WITH OVERLAY OR IFTHEN
SYNCSMF CALLED BY SYNCSORT; RC=0000

If i am giving
//REPTOUT DD SYSOUT=* its working fine (as i have mentioned in the above JCL)

but with a pds name its giving the above mentioned errors.I tried a lot ,but not able to resolve this .Please guide me.

Regards
Akshatha
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 05, 2007 4:37 pm    Post subject:
Reply with quote

What are the characteristics of thePDS ? RECFM & LRECL
Back to top
View user's profile Send private message
vkphani

New User


Joined: 29 Oct 2003
Posts: 29

PostPosted: Thu Apr 05, 2007 4:47 pm    Post subject:
Reply with quote

Create a file with same characteristics as B052AKN.XSCM201.SCXFILE3 and give that as your output file.
Back to top
View user's profile Send private message
akshathan

New User


Joined: 18 Aug 2006
Posts: 45

PostPosted: Thu Apr 05, 2007 5:17 pm    Post subject: Re: Problem with SYNCSORT report writing
Reply with quote

Hi Vkphani,

I tried by giving a file with same characteristics before posting ,this is what i got in the sysout.Please go through this


WER164B 25,648K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 2M BYTES USED
WER108I SORTIN : RECFM=FB ; LRECL= 550; BLKSIZE= 27500
WER107A REPTOUT RECFM INCOMPATIBLE WITH REPORT WRITING
WER110I REPTOUT : RECFM=FB ; LRECL= 550; BLKSIZE= 27500
WER247A REPTOUT HAS INCOMPATIBLE LRECL
WER425A CONVERT FEATURE CANNOT BE USED WITH OVERLAY OR IFTHEN
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000

regards,
Akshatha
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Apr 05, 2007 5:23 pm    Post subject: Re: Problem with SYNCSORT report writing
Reply with quote

I don't have SYNCSORT, so I can only guess, but the messages:

REPTOUT RECFM=F/FB, LRECL/BLKSIZE INVALID
REPTOUT RECFM INCOMPATIBLE WITH REPORT WRITING
REPTOUT : RECFM=FB ; LRECL= 133; BLKSIZE= 27500
REPTOUT HAS INCOMPATIBLE LRECL

seem pretty clear. I would presume that, since you are creating a report, that the expected output format would be RECFM=FBA, LRECL=133. It would appear that your dataset is not defined as such.
Back to top
View user's profile Send private message
vkphani

New User


Joined: 29 Oct 2003
Posts: 29

PostPosted: Thu Apr 05, 2007 5:54 pm    Post subject:
Reply with quote

Akshatha,

Please delete your output file and give it as the output file with DISP=(NEW,CATLG,DELETE) but DO NOT give LRECL. That will solve your problem I guess.

Try that and let us know.
Back to top
View user's profile Send private message
akshathan

New User


Joined: 18 Aug 2006
Posts: 45

PostPosted: Thu Apr 05, 2007 7:13 pm    Post subject: Re: Problem with SYNCSORT report writing
Reply with quote

Hi Superk and vkphani,

Thanks for your replies.I got the out put as i wanted.I didnt specify the record length and changed the RECFM from FB to FBA as mentioned by Superk.

Initially i tried to run the JCL without specifying record length (mentioned by Vkphani),once again it ended with sam error 'incompatible record length' for report writing. Then tried with record length andRECFM= FBA still got the same error.At last i tried with no LRECL value and giving RECFM=FBA i got the out put.I dont know what logic is behind this.Could you please explain.

I want some information about FBA.

Thanks Onceagain!!
regards
Akshatha
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 Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am


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