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

Sort abend,when copying a tape file to DASD file with SB37


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sreeharithag

New User


Joined: 26 Apr 2010
Posts: 9
Location: chennai

PostPosted: Fri Sep 24, 2010 11:53 am
Reply with quote

I'm trying to copy a tape file to a DASD file. but it's failing with SB37 abend. Please find the jcl i have used for copying and please help me to resolve thiS. Input file LRECL is 8164 and it is VB.

Code:
//STEP01   EXEC PGM=SORT                                     
//SORTIN   DD  DSN=INPUTFILE,DISP=SHR       
//SORTOUT  DD  DSN=OUTPUTFILE,         
//             UNIT=DISK,SPACE=(CYL,(100,100),RLSE),         
//             DISP=(NEW,CATLG,DELETE)                       
//SYSIN    DD  *                                             
  SORT FIELDS=COPY                                           
/*                                                           
//SYSOUT DD  SYSOUT=*
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Fri Sep 24, 2010 12:10 pm
Reply with quote

Quote:
...but it is failing with SB37 abend ...


what does the manual say about it ?

look at the manual - MVS system codes ( link at top of the page )
and if something is not clear somebody will be glad to explain
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Sep 24, 2010 12:12 pm
Reply with quote

Have you noticed the button marked "SEARCH" at the top of every page.
There are 94 hits for SB37.
Back to top
View user's profile Send private message
ashishrw

New User


Joined: 02 Dec 2006
Posts: 3
Location: Pune, India

PostPosted: Thu Oct 14, 2010 4:57 am
Reply with quote

try Changing SPACE=(CYL,(100,100),RLSE) to SPACE=(CYL,(3000,3000),RLSE)

3000 + 3000 is what i know maximum you can give. SB37 is space abend. So increasing cylinders might solve it.

Do not forget to code RLSE here, otherwise you will be wasting lots of space here.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Thu Oct 14, 2010 7:55 am
Reply with quote

Hello,

Quote:
3000 + 3000 is what i know maximum you can give.
Just curious - where was this learned?
Back to top
View user's profile Send private message
GaganGarg

Active User


Joined: 31 Mar 2010
Posts: 134
Location: India

PostPosted: Thu Oct 14, 2010 12:15 pm
Reply with quote

Quote:

3000 + 3000 is what i know maximum you can give


I don't agree with this.
I have created the files with more space e.g. SPACE=(CYL,(4000,9000)) number of times.
The thing here is that while allocating the PRIMARY space ( In any space unit viz. cyl,trks,kilobytes etc) should not go beyond 65535 TRKS. otherwise you will face the issue "PRIMARY SPACE EXCEEDS 65535 TRKS"
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Thu Oct 14, 2010 7:35 pm
Reply with quote

Hello,

Quote:
I don't agree with this.
I don't either. . .

This is why asked where it was learned . . .

Possibly, TS will clarify.

d
Back to top
View user's profile Send private message
ashishrw

New User


Joined: 02 Dec 2006
Posts: 3
Location: Pune, India

PostPosted: Thu Oct 14, 2010 7:46 pm
Reply with quote

Hi,

maybe this is perticular to mainframe I was using. hence quoted 'what I know'. may not be true for all cases. better option will be to keep on increasing cycles until you get your file (or system does not allow you - jcl error is thrown when a limit is reached) or be smart and put some filter crieterion in sort sysin so only records you are interested in are copied to output file.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Oct 14, 2010 8:01 pm
Reply with quote

ashishrw wrote:
better option will be to keep on increasing cycles until you get your file (or system does not allow you - jcl error is thrown when a limit is reached) or be smart and put some filter crieterion in sort sysin so only records you are interested in are copied to output file.
What on earth are you gabbling on about.

What are cycles - apart from things with two wheels that sort of get you from A to B

Please explain to the forum why it would be smart to select only certain records. Has the OP said that the records can be reduced by selection criteria. Certainly NOT that is written in the original post, so from where did that great idea pop up from icon_rolleyes.gif

ashishrw, unless you can contribute something constructive without making suggestions with reference to points not mentioned by the OP, please DO NOT post. All you do is create confusion and waste bandwidth.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Thu Oct 14, 2010 8:09 pm
Reply with quote

Quote:
better option will be to keep on increasing cycles until you get your file
You must be having some Very Human Storage prople! icon_smile.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Thu Oct 14, 2010 8:13 pm
Reply with quote

sreeharithag - suggest you post the SYSOUT messages from the failed job to help us to help you.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Thu Oct 14, 2010 9:04 pm
Reply with quote

Hello,

Quote:
maybe this is perticular to mainframe I was using.
Probably not. . . It is possible that some local standard dictates this, but it has nothing to do with "the mainframe".

Quote:
sreeharithag - suggest you post the SYSOUT messages from the failed job to help us to help you.
And talking with your storage management people would also be a good thing . . . There may already be a different dataclass/storage group for this type of file on your system.
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Unable to interpret a hex value to De... COBOL Programming 4
No new posts JCL sort to compare dates in two file... DFSORT/ICETOOL 2
No new posts Is this possible via sort (in one pass)? SYNCSORT 4
No new posts GDG generation name to GDG Base name ... DFSORT/ICETOOL 3
No new posts SORT on detail record, then repeat he... DFSORT/ICETOOL 3
Search our Forums:

Back to Top