01 b pic +9(4)
How many bytes it will take for storage???
Answers were Sorted based on User's Feedback
Answer / guest
5 bytes.
As usage caluse is not mentioned, default usage clause
which is "Display" will be used for b. Display uses 1 byte
for every character data. So 1 byte of sign(+) and other 4
bytes of pic 9(4). Total 5 bytes will be used.
| Is This Answer Correct ? | 3 Yes | 2 No |
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
what is lrec=f,what is difference between f,fb,v,vb?what is default value?how do we came to know that records are in f,fb,v,vb?
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)
01 MOVE 10 TO N 05 PERFOM PARA1 TIMES STOP RUN WAT WILL HAPPEN?? WILL IT RUN INFINITELY OR AN ERROR WIL BE THER BECAUSE NO OF TIMES IS NOT GIVEN??
can any one give good example for cond 88 level number and for renames pls urgent dudes ?
In an EVALUATE statement, can I give a complex condition on a when clause?
how to transfer the file from pc to mainframe??
How can you declare the file ?
i want to use only first 100 records from a file.plz tell me how to write JCL for this(for read,copy,write operations).plz give me details of all posible JCL utilities?
what is the minimum number of lines a Cobol program should have to successfully compile and run
01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.