View previous topic :: View next topic |
Author |
Message |
danm Intermediate
Joined: 29 Jun 2004 Posts: 170 Topics: 73
|
Posted: Tue Oct 11, 2005 12:49 pm Post subject: Packed decimal in Assembler language |
|
|
I am new to assembler language. How do I code the following:
If the packed decimal value is less than or equal to 0, then branch to statement XYZ. |
|
Back to top |
|
|
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Tue Oct 11, 2005 1:11 pm Post subject: |
|
|
Lookup extended mnemonics for branching. You would need the BNH instruction. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
|
Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Tue Oct 11, 2005 3:45 pm Post subject: |
|
|
Something like this:
Code: |
CP PDVAR,=PL1'0'
BNH XYZ
...
|
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|
Back to top |
|
|
|
|