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..
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
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.
Joined: 09 Aug 2008 Posts: 1631 Location: Mumbai, India
Posted: Thu Sep 02, 2010 5:12 pm Post subject:
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,
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