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

Getting mismatched RECFM in sort when giving DCB=*.sortin


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

New User


Joined: 04 Feb 2008
Posts: 65
Location: Hyd

PostPosted: Wed Jul 29, 2009 11:15 am
Reply with quote

Hi All,

Please find the below sort card, where i am trying to copy input data into output.
Code:

//STEP060  EXEC PGM=SYNCSORT,PARM='SIZE(MAX)'                   
//SORTIN   DD  DSN=FILEIN,DISP=SHR       
//SORTOUT  DD  DSN=FILEOUT,         
//             DISP=(,CATLG,DELETE),                           
//             UNIT=SYSDA,SPACE=(CYL,(500,200),RLSE),           
//             DCB=*.SORTIN                                     
//SYSIN    DD  *                                               
    SORT FIELDS=COPY,                                           
    STOPAFT=5000                                               
/*   
                                                         

But it abended due to the the sort out RECFM=U.
How the sortout RECFM=U instead of FB where we are giving DCB=*.SORTIN???

Find the error message which i am getting below.
Code:

SYSIN :                                                                   
    SORT FIELDS=COPY,                                                     
    STOPAFT=5000                                                         
WER276B  SYSDIAG= 3169261, 4781232, 4781232, 2832159                     
WER164B  5,880K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,       
WER164B     0 BYTES RESERVE REQUESTED, 1,012K BYTES USED                 
WER146B  12K BYTES OF EMERGENCY SPACE ALLOCATED                           
WER108I  SORTIN   : RECFM=FB   ; LRECL=   187; BLKSIZE= 32725             
WER141A  SORTOUT  RECFM IS U                                             
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                             



Thanks for ur help,
Kalyan V
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 29, 2009 11:24 am
Reply with quote

HJave you tried by specifying the same DCB attributes as the SORTIN.

In fact, I would only code

RECFM=FB,LRECL=187
Back to top
View user's profile Send private message
kalyan.v

New User


Joined: 04 Feb 2008
Posts: 65
Location: Hyd

PostPosted: Wed Jul 29, 2009 11:38 am
Reply with quote

If i specify DCB parameters same as SORTIN( RECFM=FB,LRECL=187), then it is working fine.
But if i give DCB=*.SORTIN then i got above error.

Thanks,
Kalyan
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Jul 29, 2009 12:33 pm
Reply with quote

Hi,

I'm assuming from the blocksize the input dataset resides on tape/cart and that SYNCSORT does not handle this.

It would be interesting to copy the input file to disk and then rerun the JCL.


Gerry
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jul 29, 2009 6:30 pm
Reply with quote

I agree with Gerry -- just for another experiment, please try to use BLKSIZE=0 with DCB=*.SORTIN and tell us what happens.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 29, 2009 6:56 pm
Reply with quote

What happens if you run it without any DCB references, either coded of *.SORTIN
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top