Can printer files (having 133 characters) be of variable
length?
Answers were Sorted based on User's Feedback
Answer / amy
The printer file is defined as FBA(Fixed block attribute)
with a length of 133 where the first byte contains the
printer carriage control characters and rest 132 contains
printable characters.
It can't be of variable length.
Is This Answer Correct ? | 12 Yes | 0 No |
Answer / atif
Printer File can be in two format. One is FB-133 byte n
another is FBA-134 byte
Is This Answer Correct ? | 1 Yes | 3 No |
Answer / jagannath
No the file has to be of fixed byte with length 133.
Is This Answer Correct ? | 0 Yes | 3 No |
Should I use STOP RUN in the sub program??why?
How can I find the maximum value of a field in a file while reading the file dynamically? without using sort function. Suppose i have a file with fields Timestamp, description, teamname, teamnumber.. i have read the file till end and find the maximun value of timestamp which is not in sorted order.. can we use function max(timestamp)?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What are the different rules of SORT operation?
What is the maximum length of a field you can define using COMP-3?
4 Answers Complex System, Infosys,
consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayedafter the PERFORM is over?assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above since there is a syntex error
Suppose a program has the following code. What will be the output? MAIN-PARA. DISPLAY 'MAIN-PARA' PERFORM SECTION-A. STOP RUN. SECTION-A. PARA-A1. DISPLAY 'SECTION A PARA A1'. PARA-A2. DISPLAY 'SECTION A PARA A2'.
Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?
what is level 66 means??
Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefines a. 03 c occus 6 times pic 9. 02 d occurs 6 times pic 9. 03 e pic x(5) 03 f pic 999.
if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?
How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1: move 20 to a.