1.Can we define condition-name conditions in FD entry.

Answers were Sorted based on User's Feedback



1.Can we define condition-name conditions in FD entry...

Answer / k.phani

yes we can define condition variables in fd entry,here is
the example
FD TRANS-FILE.
01 TRANS-REC.
O2 TRANS-CODE PIC X.
88 INSERTION VALUE IS 'I'.
88 DELETION VALUE IS 'D'.
88 MODIFICATION VALUE IS 'M'.
02 REST-OF-TRANS.
03 TRAN-NO PIC X(5).
03 TRAN-NAME PIC X(20).
..............


HERE IN PROCEDURE DIVISION WE CAN USE CONDITIONS NAMES
AFTER READING TRANS-FILE FOR DELETING, MODIFYING,INSERTING
THE RECORD IN MASTER-FILE.

I HOPE THIS CLEAR UR DOUBT

Is This Answer Correct ?    10 Yes 1 No

1.Can we define condition-name conditions in FD entry...

Answer / kavya

We can define condition-name conditions in Fd entry.

Is This Answer Correct ?    6 Yes 1 No

1.Can we define condition-name conditions in FD entry...

Answer / mighty

NO

Is This Answer Correct ?    5 Yes 4 No

1.Can we define condition-name conditions in FD entry...

Answer / guest

Kavya is correct . I have doen it many times .

Is This Answer Correct ?    1 Yes 0 No

1.Can we define condition-name conditions in FD entry...

Answer / chakri

KAVYA is correct i have done.

Is This Answer Correct ?    1 Yes 0 No

1.Can we define condition-name conditions in FD entry...

Answer / kavya

But as i checked we can......just check it out n post the
answer......

Is This Answer Correct ?    0 Yes 0 No

1.Can we define condition-name conditions in FD entry...

Answer / harish

according to me yes, we can define condition names in FD
entry..

pls let me know if u have any queries

HARISH POOMGAME SHIVAPPA
NIIT TECHNOLOGY
KOLKATA

Is This Answer Correct ?    0 Yes 0 No

1.Can we define condition-name conditions in FD entry...

Answer / pradeep

are you guys sure
give an example

Is This Answer Correct ?    0 Yes 0 No

1.Can we define condition-name conditions in FD entry...

Answer / ashok

yes guys.. we can write it... evne i have tried it. its
working....

Is This Answer Correct ?    0 Yes 0 No

1.Can we define condition-name conditions in FD entry...

Answer / nag

Yes, we can used conditon names in FD section. here is
sample code of our project.

05 DIRECT-BILL-INDICATOR PICTURE X.
88 DIRECT-BILL-ONLY VALUE '1'.
88 DIRECT-OR-AGENCY-BILL VALUE '2'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

wirte a pgm in using files in which we hav 10 ,20,30 40...100 records in inputfile and i want them to be send to outputfile in reverse order. PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..

5 Answers   iGate,


What is the problem of ordered sequential files access?

0 Answers  


maximum of how many screens we can open in emulator

2 Answers  


for an INITIALIZE and what keyword allows for an override of the default.

2 Answers  


how many bytes do SPPPP999 will store?

18 Answers  


consider the following PROCEDURE DIVISION entry OPEN EXTEND IN-FILE identify the correct statement a.organization of IN-FILE is sequential and records can be added in the beginning b.organization of IN-FILE is sequential and records can be added in the end c.organization of IN-FILE is indexed and records can be added in the beginning d.organization of IN-FILE is indexed and records can be added in the end

3 Answers   TCS,


What is amode(31)

0 Answers  


a. Can the OPTIONAL clause in COBOL only be coded for input files? b. If it is coded for files opened in OUTPUT, I-O or EXTEND mode, will it give a compilation error? c. If there are no compilation errors and if such files are not coded in the JCL, will the OPEN statement run fine when these files are opened? d. How will a WRITE statement work for the above files?

2 Answers  


How can we increase the size of an existing PDS to include more no. of modules. I tried the answer posted by Jagan(TSO PDS 'pds name') but did not find it working. The answer posted by kamal i know very well. Please suggest me a answer so that we don't need to delete the existing PDS and still we can change the size as well.

10 Answers  


WE HAVE 5 DIFFERENT RECORDING MODE IN COBOL.FIXED, FIXEDBLOCK, VARIABLE, VARIABLEBLOCK AND UNDEFINED. WHAT IS THE DIFFERENCE AMONG ALL AND WHICH TYPE OF FORMAT SHOULD BE USED WHEN

3 Answers   Infosys,


Suppose, file A has 100 records and file B has 500 records. We want to write records common to both A and B into file C and records which are present only in either A or B into another file D. What should be the logic of Cobol program to achieve this?

7 Answers   Bank Of America, Mind Tree,


input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.

1 Answers  


Categories