Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : All available storage is assigned to the job or jobstep, If REGION is coded 0K or 0M

Google
 
Web mainframegurukul.com

error code sb37

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL
  View previous topic :: View next topic  
Author Message
karthikkingh
Member


Joined: 22 Jul 2010
Posts: 5
Location: chennai

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Sep 01, 2010 7:12 pm    Post subject: error code sb37 Reply with quote

Hi friends.. I'm an Amateur in this Mainframe COBOL Domain. and while I was working out file handling in cobol, i made an input PS as 5 subject marks and opened it in 'I-O' mode and calculated its total and average and in the same code, i also opened an output PS in 'OUTPUT' mode and tried to copy the students name,average,grade from the input which was al specified as per rules and also i added serial no. to this PS.. and now when i compiled it i got maxcc==0 Very Happy but when i run it, i got sb37 as return code which i knew as "no volume.. bla bla bla..."
when i opened the Input PS.. the total,average,grade are al calculated correctly and it was a success but when i opened the output file which was supposed to contain only serial no, students name, average, grade only was run succesfully which read from the input file as it is but the serial no. alone gets repeated as it is as a loop and extended upto 2400lines.. phewww.. and thats y i get this error sb37 and now i 've made no errors in the coding..everything was there as it is.. so can u guess, where wud that error might ve took place...
it wud b a g8 help..
thanks friends..
once again.. sorry i'm new to this forum and to this cobol language.. so pls be patience with me.. thanks folks.. have a nice day !!!!!!1
_________________
karthikbalakumar
Back to top
View user's profile Send private message Yahoo Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.

dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 975

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Sep 01, 2010 7:15 pm    Post subject: Reply with quote

your first error is:
Quote:
and now i 've made no errors in the coding

_________________
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
karthikkingh
Member


Joined: 22 Jul 2010
Posts: 5
Location: chennai

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Sep 01, 2010 7:21 pm    Post subject: Reply with quote

what i tried to mean.... there... was no compilation error and no run time error only logical error occurs.. do u ve any idea what that might ve been due to ??

and one more question can 'WRITE' and 'REWRITE ' statements occur in the same 'PERFORM' paragraph ??? Question Question
_________________
karthikbalakumar
Back to top
View user's profile Send private message Yahoo Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 975

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Sep 01, 2010 7:48 pm    Post subject: Reply with quote

having no compilation errors only means you managed to code your program with proper syntax.

no run time error - what do you think an SB37 is?

do I have any idea? yes, you have a logic error, your code does not fulfill the requirements.

can WRITE & REWRITE statements occur in the same PERFORM paragraph?
again, inane question. depends upon if you can logically WRITE & REWRITE to the same file (or different files)

have no idea what your code is like.

Suggest you run it thru a debugger - xpeditor/intertest etc...

don't whine about not having a debugger if you don't have one, or don't know how to use it.
put in display statements to provide a log of the execution to find your error.

the requirement - read a file, reformat, output - is a very simple program.

Suggest you stop making assumptions; desk check your program, debug it.
if you need help, you will need to provide code, and use bbcode [ code ] [ /code ] tags
to to properly format code or fixed width data
_________________
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
karthikkingh
Member


Joined: 22 Jul 2010
Posts: 5
Location: chennai

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Sep 01, 2010 8:05 pm    Post subject: Reply with quote

thanks for the info bro.
and can u name some other software's that can compile COBOL programs in normal windows 7 like xpeditor..
again thanks Smile
_________________
karthikbalakumar
Back to top
View user's profile Send private message Yahoo Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 975

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Sep 01, 2010 10:10 pm    Post subject: Reply with quote

why the question about windoz?

an SB37 is a mainframe OPS error.

and xpeditor is not a compiler, it is a debugger.

and, last but not least - this is not a chat room, nor am I a bro.
_________________
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 1631
Location: Mumbai, India

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu Sep 02, 2010 5:12 pm    Post subject: Reply with quote

Well, SB37 is space abend. This comes when end-of-volume is detected. This system completion code is accompanied by message IEC030I. Refer to the explanation of message IEC030I for complete information about the task that was ended and for an explanation of the return code.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Tue Jan 19, 2016 7:55 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Recently faced mainframe cobol Interview Questions. 15 rangab 20458 Wed Feb 03, 2016 11:06 pm
academyindia4 View latest post
No new posts Why another mainframe forum? 4 MrSpock 6428 Thu Jan 21, 2016 11:59 pm
academyindia4 View latest post
No new posts How do I add sticky in this Forum ? 10 Anuj Dhawan 14036 Mon Dec 06, 2010 3:07 pm
Anuj Dhawan View latest post
No new posts Many JCL statements contain specific values designed to dire 1 Krishna 4873 Tue May 12, 2009 5:39 pm
Krishna View latest post
No new posts Can I add sticky in this Forum ? 2 Anuj Dhawan 4322 Thu Nov 27, 2008 2:49 pm
Anuj Dhawan View latest post
 


Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-5305.html