I have a variable account-number declared as comp-3, s9(10)
comp-3 in a file. How do i find a particular account number
say 123456 in that file?
Answer Posted / manoj
there are few ways for that
1. Write a cobol program
if com3field = 123456
display 'record'
2. Open the file in HEX ON mode and read records one by one :)
3. else use sort utility in jcl
OPTION COPY
INCLUDE COND=(1,8,PD,EQ,123456)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
) how do u code after getting data?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is length is cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is comp-1 and comp-2?
How arrays can be defined in COBOL?
example for sub strings ? and refernce modifications whit output pls
How can you get the ksds file records into your cobol program?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Explain the configuration section of a cobol program with examples of syntax.
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What type of SDLC u followed? Why?
Explain about different table spaces.