Operator

Mainframe JCL Abend Examples

Abend An AbEnd (abnormal end) is an exception condition which results in the abnormal termination of a program or software.  Its is a common terminology used in the mainframe world where a JCL terminates with an error code.  Following section covers some common abends faced by mainframe developers S0C1 Operation Exception Cause Reading or writing […]

Mainframe JCL Abend Examples Read More »

SQL code -305

SQL code -305 SQL code of -305 is the sql error which results on retrieving a null value in a host variable for which there is no null When does Sql code -305 comes? Sqlcode -305 can come if a fetch or embedded SELECT results in assigning a NULL value to a host variable for

SQL code -305 Read More »

About Me

Hello. This is Vikas Saxena, the author of mainframewizard.com. Hope you enjoyed the website and have something to take back. If you like the website add it to your bookmarks and suggest others.  Any comments. feedback or suggestions are most welcome at mainframewizard@gmail.com

About Me Read More »

SQL code -204

SQL code of -204 comes due to sql involving an object which is not defined.  SQLCODE = -204, ERROR:  objectname IS AN UNDEFINED NAME When does Sql code -204 comes? Sqlcode -204 can come if the sql involves an object which is not defined. This could happen with any DB2 object. This sqlcode can also

SQL code -204 Read More »

SORT JCL with SKIPREC

If you wish to skip certain number of records while sorting you can use the following Where n is the number of records which are to be skipped while sorting Example JCL is provided below. ; ; ; ; //SORTIN   DD DISP=SHR,DSN=USERID.ABC.INPFILE, //SORTOUT  DD DSN=USERID.ABC.OUTFILE, //      SPACE=(TRK,(30,10),RLSE),          

SORT JCL with SKIPREC Read More »

SORT JCL with STOPAFT

If you wish to stop sorting after say N number of records then you can use the following Where n is the number of records after which sorting is required to be stopped. Example JCL is provided below. ; ; ; ; //SORTIN   DD DISP=SHR,DSN=USERID.ABC.INPFILE, //SORTOUT  DD DSN=USERID.ABC.OUTFILE, //      SPACE=(TRK,(30,10),RLSE),    

SORT JCL with STOPAFT Read More »