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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Getting mismatched RECFM in sort when giving DCB=*.sortin
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 29, 2009 11:24 am    Post subject:
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    Post subject:
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: 1703
Location: Australia

PostPosted: Wed Jul 29, 2009 12:33 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Jul 29, 2009 6:30 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 29, 2009 6:56 pm    Post subject:
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    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 Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm


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