how to code in cobol while using variable block file?
Answer / ravi
INDENTIFICATION DIVISION.
PROGRAM-ID. PGM1.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. IBM
OBJECT-COMPUTER. IBM
INPUT-OUTPUT SECTION.
FILE CONTROL.
SELECT INPUT-VB-FILE ASSIGN TO DISK.
DATA DIVISION.
FILE-SECTION.
FD INPUT-VB-FILE
01 INPUT-VB-FILE
RECORDING MODE IS V
RECORD CONTAINS 1000 CHARACTERS <---This should be the max
size of the record in whole file.
BLOCK CONTAINS 0 RECORDS.
Is This Answer Correct ? | 2 Yes | 8 No |
how would you resolve sb37 and SE37?
Explain the configuration section of a cobol program with examples of syntax.
how many maximum no of variables can be declared in linkage section ?
What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?
How are the next sentence and continue different from each other?
How To move a value to an array using move verb?
Write the code to count the sum of n natural numbers.
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
A table has two indexes defined. Which one will be used by the SEARCH?
tell me about examine inspect and evaluate ?
what is the difference b/w level no.01 & level no.77?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?