Sort JCL to Remove duplicates

REMOVING DUPLICATES FROM INPUT FILE AND WRITE DUPLICATES TO A FILE     //SREMDUPL JOB (XXXXXXXX,,,,,XXXX),’        ‘,       //             CLASS=J,MSGCLASS=Y,NOTIFY=&SYSUID,    //* THIS JOB SORTS THE INPUT FILE AND REMOVES        //* WRITES DISTINCT  RECORDS IN SORTOUT           […]

Sort JCL to Remove duplicates Read More »

Problem with SORT OUTRFIL and OUTREC

Problem with SORT OUTRFIL and OUTREC Hi, Am facing one problem for below scenario. //STEP01   EXEC PGM=SYNCSORT                                       //SYSPRINT DD SYSOUT=*                                             //SYSOUT   DD SYSOUT=*                                             //SYSDUMP  DD SYSOUT=*                                             //SORTIN   DD DSN=MLIFE24.VCSE.MIS.MISEXTRM(+0),DISP=SHR          —> lrecl size is 20476 and recfm is VB //PVALOUT  DD DSN=TLIFE24.VCSED.MIS.PVAL2,                         //            DISP=(NEW,CATLG,DELETE),                             //            DATACLAS=DATAF,LRECL=3000                            //INQCOUT  DD DSN=TLIFE24.VCSED.MIS.INQC2,                         //            DISP=(NEW,CATLG,DELETE),                             //            DATACLAS=DATAF,LRECL=3000                            //SYSIN    DD *                                                     SORT FIELDS=COPY             OUTFIL FNAMES=PVALOUT,INCLUDE=(67,4,CH,EQ,C’PVAL’)                 OUTFIL FNAMES=INQCOUT,INCLUDE=(67,4,CH,EQ,C’INQC’)                    

Problem with SORT OUTRFIL and OUTREC Read More »

DIFFERENCE BETWEEN COBOL SEARCH AND SEARCH ALL

DIFFERENCE BETWEEN SEARCH AND SEARCH ALL The following mainframe tutorial list down the basic differences between the COBOL SEARCH and SEARCH ALL. SEARCH SEARCH ALL 1) Used for sequential search in COBOL tables.                     1) Used for Binary search. 2) The entries do not need to  be in any order.                     2) The

DIFFERENCE BETWEEN COBOL SEARCH AND SEARCH ALL 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 »