where will u code file status ?
Answers were Sorted based on User's Feedback
Answer / rahul
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT file-name ASSIGN TO dd-name.
FILE STATUS IS ws-file-status1.
ws-file-status1 need to define in WORKING STORAGE SECTION
with
PIC X(02)- For QSAM files
PIC X(03) for VSAM files.
| Is This Answer Correct ? | 10 Yes | 0 No |
I have the requirement to compare the two files and pick up the matching records. File 1. file2 23 32 32 13 34 15 35 36 36 35 43 Get the matching records from this 2 files to out file. how you will do this in cobol program?
15 Answers ADP, Broadridge, CTS, HSBC, L&T, RBS, TCS,
how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas
what is rediffine clause?in what situation it can use?give me real time example?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
What are different data types in cobol?
What are the various section in data division and briefly explain them.
in cobol perform stmt whether it first checks the condition or not
plz,could any one tell me? what about EBCDIC in cobol?briefly?
01 A pic 9(100) find record length of it
Name the divisions in a COBOL program ?
i have a variable block which is used in my cobol program as input file having records of 4080 after compilation while runing the program im getiing file attribut mismatch and it is saying tht the record length of the file is 4084 can any one knw the answer how to reslove it ?
how can we fetch 3 records in cobol pgm any coding pls ?