Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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?

1140


What is the use of trt instruction?

1081


What is icm instruction?

1119


how to retrieve the instream data in sysin?

1192


Explain about house keeping in assembler?

1094


What is need of start 0?

1173


What does the following code do? Ap wkur,=p5 where wkur is a label?

1146


how to initialize a register to 0000?

1207


How many maximum base registers we can have in a program?

1067


Explain how to produce soc7 abend?

1137


how do you round the addition or subtraction of two numbers in assembler? what does the following code do? change process tool(code changes from dev to prd) the changes made to your code should be effected in live. How the process takes place. That is how can you move the code changes from development to production?

1167


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

1102


What is house keeping in assembler?

1076


Ap wkur,=p5 where wkur is a label?

1199


How to pass the parameters from jcl to assembler program?

1062