Uncategorized

How to calculated maximum space using primary and secondary units

How to calculated maximum space using primary and secondary units Before I start my question, let me provide an example     How much total space be allowed for  SPACE=(TRK,(10,5))  I read somewhere during my training that the total units can be calculated by using the following formula Total units(Trks/blks/cyl)= Primary + 15 * Secondary. SPACE=(TRK,(10,5)) […]

How to calculated maximum space using primary and secondary units Read More »

sql code -804

I was facing sql code -804 while executing a query from cobol db2 program.  The explanation for this sql code on ibm site was described as following   AN ERROR WAS FOUND IN THE APPLICATION PROGRAM INPUT PARAMETERS FOR THE SQL STATEMENT, REASON reason

sql code -804 Read More »

fetch multiple rows without using CURSORS

fetch multiple rows without using CURSORS Is it possible to fetch multiple rows in a COBOL program without using CURSORS. I could find that we can fetch multiple rows using FETCH but then we still would need CURSORS. see the following article for details http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db2.doc.relg/fmlt.htm Any thoughts?? “; ; ; ;

fetch multiple rows without using CURSORS Read More »