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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / vs kumar
By using File-aid we can see the comp-3 data item.
Please correct me if i am wrong.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / balaji
Put HEX ON in the file and you can find the numbers
equivalent to the hexa decimal
| Is This Answer Correct ? | 0 Yes | 1 No |
what is ASRA, AEY9?
input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16.... output:- A = 100,B=36,C=50. Here spaces are considered between numbers. When we give input as above, the numbers should be added n displayed.So please help me out.
01 x pic s9(8) comp. How will the following value be internally allocated '18787'
How arrays can be defined in COBOL?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
0 Answers TryTechnicals Pvt Ltd,
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?
Write the syntax of a two dimensional array?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How to increase the logical record length of existing PS file?
how can u redefine picx(10) with pic 9(6).
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly