how can we find total no of records in a file ....is there
any utility......?
Answers were Sorted based on User's Feedback
Answer / vivek c
Use ICETOOL utility as below.
//TOOLIN DD *
COPY FROM(IN1) USING(CTL1)
/*
//CTL1CNTL DD *
OUTFIL FNAMES=OUT,REMOVECC,NODETAIL,
TRAILER1=('FILE1',5X,COUNT=(M10,LENGTH=5))
/*
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / varsha
//SYSIN DD *
INREC FIELDS=(1,4,C'00001')
SORT FIELDS=(01,04,CH,A)
SUM FIELDS=(05,05,ZD,A)
OUTREC FIELDS=(01,04,05,05)
/*
Briefly, I'm adding a numeric 00001 to each record and
sorting them on the numeric field and summing all such
records, which will give you the desired output.
| Is This Answer Correct ? | 1 Yes | 0 No |
Difference between cobol and cobol-ii?
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.
Without using move verb how to move one variable to another.
How To move a value to an array using move verb?
What is the difference between a DYNAMIC and STATIC call in COBOL?
What are the different rules of SORT operation?
Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a
What is the maximum length of a field you can define using COMP-3 in COBOL?
Name the divisions in a COBOL program ?
What is the mode in which you will OPEN a file for writing?
In a program, variables are used but no DB2 involved in it. Can you call it as host variables??
Write a program to enter and display the names of students in a class using the occurs clause.