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

if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

853


What is the LINKAGE SECTION used in COBOL?

885


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

769


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

654


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.

1697






INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

417


What are the access modes of START statement?

716


How many sections are there in data division in COBOL?

676


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

704


What is a scope terminator give example?

652


what is difference between cobol and cobol/400

21556


What is the difference between external and global variables in COBOL?

811


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

647


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

680


How do you define a variable of comp-1 and comp-2?

701