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
 

 

Tape to dasd--getting sb37 error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Tape to dasd--getting sb37 error
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: 686
Location: Earth

PostPosted: Fri Jun 29, 2007 2:55 pm    Post subject: Re: tape to dasd--getting sb37.
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    Post subject:
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: 686
Location: Earth

PostPosted: Fri Jun 29, 2007 3:23 pm    Post subject:
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: 686
Location: Earth

PostPosted: Fri Jun 29, 2007 3:25 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jun 29, 2007 4:55 pm    Post subject:
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

Active Member


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

PostPosted: Fri Jun 29, 2007 5:31 pm    Post subject:
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    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 Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm


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