in cobol i have one file it contains records like
10,4,23,98,7,90..... total records 100. iwant 10 to 20 in
reverse order in cobol environ ment any one please give the
answer......
Answers were Sorted based on User's Feedback
Answer / ramesh kumar
let me explain the ans for if the file is PS.
fist compute the value 100-80 into one ws-variable.
then read the file and add 1 to some ws-count variable upto 20th record then check for the conditon if it is 20th record
like if ws-variable = ws-count
if it is then write into o/p rec, now decresae 1 from ws-variable like subtract 1 from ws-variable
and read file again add 1 to ws-count then check for the conditon if it is 19 recrd then write into o/p rec.
perform until ws-variable=0.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / karthick
Ya its simple.......
U can select these records as primary key in ksds cluster.
In cobol program you specify access as random. then select
particular records. and then sort it out in reverse order.
| Is This Answer Correct ? | 1 Yes | 3 No |
What is the difference between a DYNAMIC and STATIC call in COBOL?
Discuss about changing dataset name in proc.
What is the difference between Perform para and perform asaection in cobol?
If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??
What is a scope terminator give example?
Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it?
Suppose i want to declare a binary comp fild of 7 byte .how to write?
how we can edit records in vsam data set and non vsam data sets
ZEROES and SPACES are _______ constants (a) Figurative (b) Numeric (c) Non-numeric (d) Alphabete
perform I from 0 by 1 until I=5?How maney times it will executes
TO abend the data sholud open in which mode? 1.new 2.old 3.mod 4.shr
I have a Flat file in which certain records are present in a tabular format. I need to extract some of the records on some basis from it and copy them into a flat file...how it can be done ??