error code sb37
Moderators: dbzTHEdinosauer, Moderator Group
-
- Member
- Posts: 5
- Joined: Thu Jul 22, 2010 10:28 am
- Location: chennai
error code sb37
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 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
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
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
-
- Member
- Posts: 5
- Joined: Thu Jul 22, 2010 10:28 am
- Location: chennai
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 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
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.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
-
- Member
- Posts: 5
- Joined: Thu Jul 22, 2010 10:28 am
- Location: chennai
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page