write a program to eliminate duplicate records in a input file
and send them to output file.
Answer Posted / ehatesham
//SORTXSUM DD DSN=datasetname,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(1,4),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
.
.
//SYSIN DD *
SORT FIELDS=(1,3,CH,A)
SUM FIELDS=NONE,XSUM
/*
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to move the records from file to array table. give with code example
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What is rmode(24)
Write a program to explain size error.
what is the use of outrecord?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What are the different rules of SORT operation?
What kind of error is trapped by on size error option?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What type of SDLC u followed? Why?
What are literals?
Are you comfortable in cobol or jcl?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.