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

Tape to dasd--getting sb37 error


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ratheesh_1983

New User


Joined: 11 Apr 2007
Posts: 19
Location: hyderabad

PostPosted: Fri Jun 29, 2007 2:42 pm
Reply with quote

Hi ,
I am trying to do tape to dasd using a jcl , The jcl used to work fine , but now it is giving SB37 abend !!!!! why is this only for this time??? what can be done from my end to do the copying from tape to dasd , is there any other way of doing it other than the jcl . i am giving the jcl i used below...

//ACS2807W JOB (MSDV,,T),'RATH',
// CLASS=T,MSGCLASS=T,NOTIFY=&SYSUID
//STEP010 EXEC PGM=IEBGENER
//SYSDBOUT DD SYSOUT=*
//SYSABEND DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=MSSR.PROD.XW6000A.X6000SA.W1X76191.G0195V00,
// DISP=SHR
//SYSUT2 DD DSN=MDDV.TEST.ACS2807.X6000SA.W1X76191.G0195V,
// DISP=(NEW,CATLG),
// UNIT=SYSDA,
// DCB=*.SYSUT1,
//*
// SPACE=(CYL,(900,900),RLSE)
//SYSIN DD DUMMY

PLEASE HELP.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Fri Jun 29, 2007 2:55 pm
Reply with quote

There may not be any problem with JCL. Sb37 indicates disk volume is out of space.
Check if your tape file is very huge, if yes, then try to copy only selected records, this will reduce your space requirement.
Back to top
View user's profile Send private message
ratheesh_1983

New User


Joined: 11 Apr 2007
Posts: 19
Location: hyderabad

PostPosted: Fri Jun 29, 2007 3:04 pm
Reply with quote

Hi agkshirsagar,

Thanks for the quick reply. One more doubt . i want to use the dasd as input to a test program. becos i am keeping DISP=(NEW,CATLG),
i am getting some records into the data set even if the job is abending with sb37, wil it be a problem to use the same data set as the test i/p for a test proram , i mean will the records i am getiing be corupted or truncated in any way ???? Also is there a way to take some selected no: of records and copy to dasd so that abend can be prevented???

regards ,
ratheesh.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Fri Jun 29, 2007 3:23 pm
Reply with quote

Quote:
Also is there a way to take some selected no: of records and copy to dasd so that abend can be prevented???


Yes, use FILE-AID selection or use SORT utility to copy only selected number of records from file.

Quote:
am getting some records into the data set even if the job is abending with sb37, wil it be a problem to use the same data set as the test i/p for a test proram , i mean will the records i am getiing be corupted or truncated in any way ????

I really can't comment on this, you may be using (new,catlg,catlg) as disposition so you are able to see the records in file even if job is abended. Better be safe using only small records..
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Fri Jun 29, 2007 3:25 pm
Reply with quote

please read.
Better be safe using only small number of records.. icon_redface.gif
Back to top
View user's profile Send private message
ratheesh_1983

New User


Joined: 11 Apr 2007
Posts: 19
Location: hyderabad

PostPosted: Fri Jun 29, 2007 4:12 pm
Reply with quote

yup i got it ,
just coded UNIT=(SYSDA,10) the job did not abend icon_surprised.gif

BTW thanks for all the info and suggestions u have provided agkshirsagar .

icon_biggrin.gif
regards,
ratheesh.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Jun 29, 2007 4:55 pm
Reply with quote

From your JCL example
// DCB=*.SYSUT1,
This uses the same DCB attributes as the tape does. So, if your dataset is optimumly blocked for tape, then you will waste acres and acres of DASD by coding your JCL like this. Probably about 40% of the allocated space will NEVER be used.

The optimum BLKSIZE for a 3390 (DASD) device is 27998, and 32760 for tape.

Instead, find out the RECFM and LRECL and substitute the line above with RECFM=??,LRECL=?? and then see just how much space you will save.

DISP=(NEW,CATLG) ..............
I think you will find that the OS will accept the normal termination disposition as the abnormal termination disposition if the abnormal termination disposition is not specified.

I suggest that you take a read of the JCL manual.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Jun 29, 2007 5:31 pm
Reply with quote

On many systems these days, we alloc DASD with BLKSIZE=0 and let the system calc optimal.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Deleting a Tape file JCL & VSAM 14
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top