hi is there any means of deletin a record from a ps usin
cobol
not using jcl?eg if i am reading a record and if some
condition is matched tat particular record must be deletd
fom the ps
Answer Posted / manikandan
Ofcourse you can do it. You can do it by a simple sort.
You can use either INCLUDE COND or EXCLUDE COND in the
sysin part.
Ex: If you want to delete a record whose first 4 characters
are 'BBBB', you can do it with the following sysin card,
SORT FIELDS=COPY
INCLUDE COND=(1,4,CH,NE'BBBB')
OR
SORT FIELDS=COPY
EXCLUDE COND=(1,4,CH,EQ'BBBB')
| Is This Answer Correct ? | 2 Yes | 9 No |
Post New Answer View All Answers
What is Pic 9v99 Indicates in COBOL?
What are the different rules of SORT operation?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What are all the divisions of a COBOL program?
What are the cobol coding sheets?
What is the difference between PIC 9.99 and PIC9v99?
Write a program that uses move corresponding.
What rules are to be followed while using the corresponding options?
How to know whether the module is dynamical or statistical?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is link edit in cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What are the different data types in cobol?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?