View previous topic :: View next topic
|
Author |
Message |
sreeharithag
New User
Joined: 26 Apr 2010 Posts: 9 Location: chennai
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Have you noticed the button marked "SEARCH" at the top of every page.
There are 94 hits for SB37. |
|
Back to top |
|
|
ashishrw
New User
Joined: 02 Dec 2006 Posts: 3 Location: Pune, India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
3000 + 3000 is what i know maximum you can give. |
Just curious - where was this learned? |
|
Back to top |
|
|
GaganGarg
Active User
Joined: 31 Mar 2010 Posts: 134 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
ashishrw
New User
Joined: 02 Dec 2006 Posts: 3 Location: Pune, India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Quote: |
better option will be to keep on increasing cycles until you get your file |
You must be having some Very Human Storage prople! |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
sreeharithag - suggest you post the SYSOUT messages from the failed job to help us to help you. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|