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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
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    Post subject: Sort abend,when copying a tape file to DASD file with SB37
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Fri Sep 24, 2010 12:10 pm    Post subject: Reply to: Sort abend,when copying a tape file to DASD file w
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: 8593
Location: Back in jolly old England

PostPosted: Fri Sep 24, 2010 12:12 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Oct 14, 2010 7:55 am    Post subject:
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: 132
Location: India

PostPosted: Thu Oct 14, 2010 12:15 pm    Post subject: Reply to: Sort abend,when copying a tape file to DASD file w
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

Site Director


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

PostPosted: Thu Oct 14, 2010 7:35 pm    Post subject: Reply to: Sort abend,when copying a tape file to DASD file w
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Oct 14, 2010 8:01 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Oct 14, 2010 8:09 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Oct 14, 2010 8:13 pm    Post subject:
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

Site Director


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

PostPosted: Thu Oct 14, 2010 9:04 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm


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