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 |
how can we get current dat and time thru cobol pgm
What should be the sorting order for SEARCH ALL?
hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?
I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.
how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please
Differentiate COBOL and COBOL-II?
copy 100 records without using ibm utilities
how can i see junk values in dclgen or in hostvariable of comp ?
01 MOVE 10 TO N 05 PERFOM PARA1 TIMES STOP RUN WAT WILL HAPPEN?? WILL IT RUN INFINITELY OR AN ERROR WIL BE THER BECAUSE NO OF TIMES IS NOT GIVEN??
What is JOBLIB and STEPLIB in JCL? what is the purpose of using it?
Can we move X(7) to S9(7) COMP?
what is label record is standard or omitted in file description of data division?