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
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How you can read the file from bottom?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What are 77 levels used for?
What are the pertinent COBOL
what are decleratives in cobol?
Whats the difference between search & search ALL?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
example for sub strings ? and refernce modifications whit output pls
How arrays can be defined in COBOL?
What is Pic 9v99 Indicates in COBOL?
What is the problem of ordered sequential files access?