how to pass 100 to s9(4) how r they inserted ?

Answers were Sorted based on User's Feedback



how to pass 100 to s9(4) how r they inserted ?..

Answer / chandru

Numeric data are right justified. So that the value inserted
will be 0100.

Is This Answer Correct ?    11 Yes 0 No

how to pass 100 to s9(4) how r they inserted ?..

Answer / rags

we can pass 100 to S9(4) field, S9(4) can store a value
upto 9999.

If the field is S9(4) Comp then it uses 2 bytes
If the field is S9(4) Comp-3, it uses 3 bytes.

This is a Special scenario: here Comp is prefered over comp-
3 due to less space it occupy ( though Comp-3 generally
occupies less space than comp fields)

Is This Answer Correct ?    8 Yes 0 No

how to pass 100 to s9(4) how r they inserted ?..

Answer / guest

notpossible

Is This Answer Correct ?    2 Yes 8 No

Post New Answer

More COBOL Interview Questions

What is the file organization clause ?

2 Answers  


What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?

2 Answers  


How to pass return codes from cobol to jcl?

5 Answers  


What are all the divisions of a COBOL program?

0 Answers  


Explain how to differentiate call by context by comparing it to other calls?

0 Answers  






Can you REWRITE a record in an ESDS file? Can you DELETE a record from it?

6 Answers   ABC, IBM, Mphasis, Wipro,


What is JOBLIB and STEPLIB in JCL? what is the purpose of using it?

1 Answers  


Consider the following: 77 A PIC 9(10) 77 B PIC 9(10) 77 C PIC 9(19) MULTIPLY AB BY B GIVING C Which of the following is true ? (a) The execution of the above may result in size error. (b) The execution of the above will result in size error. (c) The definition of C is invalid resulting in compilation error. (d) No error will be thee and the program would proceed correctly.

4 Answers   TCS,


How many maximum number of procedures can we write in one COBOL program?

5 Answers  


How will you find the currepted records in a file

2 Answers  


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.

10 Answers  


What is the default value of DISP for temp datasets

5 Answers   IBM,


Categories