error code sb37

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
karthikkingh
Member
Posts: 5
Joined: Thu Jul 22, 2010 10:28 am
Location: chennai

error code sb37

Post by karthikkingh » Wed Sep 01, 2010 7:12 pm

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 :D 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

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Wed Sep 01, 2010 7:15 pm

your first error is:
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.

karthikkingh
Member
Posts: 5
Joined: Thu Jul 22, 2010 10:28 am
Location: chennai

Post by karthikkingh » Wed Sep 01, 2010 7:21 pm

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 ??? :?: :?:
karthikbalakumar

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Wed Sep 01, 2010 7:48 pm

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.

karthikkingh
Member
Posts: 5
Joined: Thu Jul 22, 2010 10:28 am
Location: chennai

Post by karthikkingh » Wed Sep 01, 2010 8:05 pm

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 :)
karthikbalakumar

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Wed Sep 01, 2010 10:10 pm

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.

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Thu Sep 02, 2010 5:12 pm

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

academyindia4

Topic deleted by Admin

Post by academyindia4 » Tue Jan 19, 2016 7:55 pm

<< Content deleted By Admin >>

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others