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 DB2 Program abending without giving a... rahulgarg14 DB2 1 Mon May 29, 2017 8:10 pm
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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