Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



hi is there any means of deletin a record from a ps usin cobol not using jcl?eg if i am reading a..

Answer / manikandan

The above answer is do it with the JCL, if you want to do
the same with COBOL, you should be having two files, one is
input and the other one with new output file. Otherwise i
suppose we can't do it.

Is This Answer Correct ?    6 Yes 0 No

hi is there any means of deletin a record from a ps usin cobol not using jcl?eg if i am reading a..

Answer / nagesh

Fine I would like go with answer #2, since physical deletion
is not possible with ps datasets , all you can do is exclude
the records meeting the condition while writing it to new ps
datasets.
let me remind once again that Deletion is not possible with
ps data sets.

Is This Answer Correct ?    5 Yes 0 No

hi is there any means of deletin a record from a ps usin cobol not using jcl?eg if i am reading a..

Answer / saikat

take the infile and outfile same in the jcl but in 2 dd
statement. Declare one ainput file to read and other as
output file to write in cobol program. Then read the file
and srore the file contents in an array/table. after
reading the full file write the file from the array records.

Is This Answer Correct ?    0 Yes 2 No

hi is there any means of deletin a record from a ps usin cobol not using jcl?eg if i am reading a..

Answer / mani

If you open the dataset in io mode can't we delete the
record, i think we can.
If it is a flat file or vsam file i think we can delete the
record but the space being used for that will not be recovered.

Please check it.

Is This Answer Correct ?    0 Yes 4 No

hi is there any means of deletin a record from a ps usin cobol not using jcl?eg if i am reading a..

Answer / 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

More COBOL Interview Questions

which one is better among static call and dynamic call?

3 Answers  


which one is the best of com and com-3.using of real time ?

7 Answers   Cap Gemini,


i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?

6 Answers  


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records...

2 Answers   ITC Indian Tobacco Company, PNP, TCS,


Explain how you can characterize tables in cobol?

0 Answers  


Explain about different table spaces.

0 Answers  


is it possible to rename 01 level?

4 Answers  


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

0 Answers   IBM,


How do you submit JCL via a Cobol program?

5 Answers   IBM,


i have two file, each file having : file1 is having 2 fields field1 field2 file2 is having 3 fields field1 field2 field3 my req is to make it one file like: field1 field2 field1 field2 field3 if anyone know please send me syntax, i tried this with DFSORT but could not succeed.

9 Answers   Syntel,


What is the maximum data length for Numeric DataType ?

3 Answers   Cap Gemini,


if we have a 10 steps how to override the 4th step in jcl?

2 Answers   Hewitt,


Categories