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


Please Help Members By Posting Answers For Below Questions

how do you reference the rrds file formats from cobol programs

785


What is difference between static and dynamic call in cobol?

766


Why did you choose to work with ibm mainframe cobol programming?

623


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5662


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5354






How do you reference the fixed block file formats from cobol programs

692


What is the difference between a binary search and a sequential search what are the pertinent cobol?

724


how to access the file from prodution from changeman tool and to submit a file to production

6663


What are various search techniques in cobol? Explain.

639


What is cobol?

735


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

668


What is a SSRANGE and NOSSRANGE?

808


how do you reference the variable unblock file formats from cobol programs

734


Difference between cobol and cobol-ii?

697


Write a program to enter and display the names of students in a class using the occurs clause.

641