1.Can we define condition-name conditions in FD entry.
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / ashok
yes guys.. we can write it... evne i have tried it. its
working....
Is This Answer Correct ? | 0 Yes | 0 No |
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 |
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..
What is the problem of ordered sequential files access?
maximum of how many screens we can open in emulator
for an INITIALIZE and what keyword allows for an override of the default.
how many bytes do SPPPP999 will store?
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
What is amode(31)
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?
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.
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
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.