[Default] On 6 May 2019 11:15:28 -0700, in bit.listserv.ibm-main [email protected] (scott Ford) wrote:
>All: > >I have a QSAM question. If I have a Cobol program writing to a QSAM file >and it runs out of space on the file, i.e.; SB37 , can i recover from the >SB37 without manual intervention. >A possible condition handler ? If you just want to extend the data set proper use of SMS or a package like Stop X37 is probably the answer. If there is some other action to be taken that is unique to the program a status code can be associated with the file and all I-O related to that file can and must be checked for non-zero completion codes (34 on output is a file full or X37 condition for QSAM). This includes OPEN and CLOSE statements. Failure to do so can lead to interesting and normally bad results. To the best of my knowledge COBOL does not have anything that would allow you to extend the file or number of tape volumes allocated to the file. Clark Morris > >If I write and Assembler I/O routine to be called passing the data to and >writing to the QSAM file, the same question, my assumption is "yes" and can >someone point me to the manual I assume it DFSMSdfp working with datasets >... > >Regards, >Scott ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
