What is the difference in data type "X" and "P"?

Answer Posted / saurabh biswas

In MVS assembler data type X denotes hexadecimal data type
which unsigned pack. suppose you define VAR1 as "VAR1 DC
X'01'". It will occupy 1 byte in the memory and stored as:
0 in the zoned nibble and 1 in the numeric nibble.

P denotes the packed data type, similar to COMP-3 in COBOL.
if you declare any variable with this data type then it
must have a sign byte at last nibble. See following example:
VAR2 DC P'1'
it will occupy one byte in the memory and stored as '1C'.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how to access vsam file?

615


What is house keeping in assembler?

597


how to retrieve the instream data in sysin?

681


Why do we use "drop"?

567


How is data passed from a calling program to an assembler called program?

634






What is the use of trt instruction?

584


What is need of start 0?

659


Explain about base register?

611


How to pass the parameters from jcl to assembler program?

576


What is need of start 0? In steed of can we use anyother numerics? If we use what will happen?

644


explain about maximum displacement and how to cross this limit?

701


Ap wkur,=p5 where wkur is a label?

673


Explain the difference between various read and find statement and which one should be used when for better adabas performance?

586


how to pass the parameters from jcl to assembler pgm?

662


What is icm instruction?

642