How To Change Character In Packed Field Assembler
New User
Joined: 19 Nov 2004
Posts: 24
Location: Banglore
| |
COuld whatever please propose me code for converting graphic symbol field to packed field tin i utilize PACK control |
Senior Member
Joined: 08 May 2006
Posts: 1141
Location: Dublin, Ireland
| |||
Depends on which language you're using. For Assembler, use the PACK didactics. For PL/one have a PIC declare of your CHAR field and assign the Moving picture to the DECIMAL Fixed field. due east.g.
Regards, Garry |
New User
Joined: nineteen Nov 2004
Posts: 24
Location: Banglore
| |
Iam using Assembler.. I want code for the conversion |
Senior Fellow member
Joined: 08 May 2006
Posts: 1141
Location: Dublin, Ireland
| |||||
Both operands accept length fields
This could also be coded as
Regards, |
New User
Joined: 19 Nov 2004
Posts: 24
Location: Banglore
| |
Really my requirement F_nomval is a graphic symbol filed of 16 bytes i have stored value four.000000 thru screen i declard F_nv_pack equally double give-and-take PACK F_nv_pack,f_nomval i checked the value of f_nv_pack by putting delibrate dump but iam getting value 0 in the F_nv_pack field could any 1 help me with query??? Many thank you in accelerate Kalpana |
Superior Fellow member
Joined: 14 Mar 2007
Posts: 10823
Location: italy
| |
in that location is very niggling that we can exercise from here PACK/unpack are 2 of the most elementary and most dumb instructions ... - they volition take anything as input an build the output according to the specifications |
Active User
Joined: 31 Jan 2008
Posts: 148
Location: Chennai, India
| |||
What is the need of using based? |
Senior Member
Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA
| |||
4.000000 is not 16 bytes and it can not be packed since information technology is non numeric. In assembler the developer has to continue rail of where the decimal point is suppose to exist. |
Senior Member
Joined: 08 May 2006
Posts: 1141
Location: Dublin, Ireland
| |||||
Hi Murugan,
This is for PL/1 only. "BASED" is used to overlay the CHAR field with a Motion-picture show field. Yous could also use Defined to accomplish the same result, but Define is, IMHO, less flexible.
No, You tin't assign a CHAR field direct into a DECIMAL FIXED field. Regards, |
Source: https://ibmmainframes.com/about32184.html
Posted by: benoitcabol2001.blogspot.com
0 Response to "How To Change Character In Packed Field Assembler"
Post a Comment