IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Clarification needed regarding ZAP instruction in Assembler


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ssamineni
Warnings : 1

New User


Joined: 10 Mar 2007
Posts: 16
Location: India

PostPosted: Mon Jun 18, 2007 4:26 pm
Reply with quote

HI,

I am getting abend while executing ZAP instruction.Both destination & source fields are defined as Packed. For the first record of the file,its going fine,its abneding for second one onwards.The source filed has proper data even for second read...is their any equivalent command for ZAP?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Jun 18, 2007 5:07 pm
Reply with quote

A S0C7? Then look at the contents of the source field that caused it.
If the field sizes are the same, you could always MVC, but then you would have the garbage in the destination field and the CC would not get set.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19245
Location: Inside the Matrix

PostPosted: Mon Jun 18, 2007 7:48 pm
Reply with quote

Hello,

If this was true
Quote:
The source filed has proper data
there would be no 0c7 icon_confused.gif

Either there is bad data in the suspect field or the field being looked at is not the field causing the abend. It may be that data that was correct when read has been erroneously modified somehow before the ZAP is executed.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Jun 18, 2007 8:04 pm
Reply with quote

I could also be a protection (store or fetch) or a decimal overflow exception. I doubt the addressing exception applys any longer and I doubt very much that the OP is running on a machine that doesn't have the decimal feature installed (operation exception).........
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Assembler test under mask question PL/I & Assembler 5
This topic is locked: you cannot edit posts or make replies. Assembler - Packed Decimals - PACK in... PL/I & Assembler 3
No new posts Calling Assembler from REXX PL/I & Assembler 5
No new posts Learning about Systems Assembler prog... PL/I & Assembler 5
No new posts Using L' to get length of instruction PL/I & Assembler 1
Search our Forums:

Back to Top