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

Assembler Instruction to Display data in Spool


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

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue May 17, 2011 4:10 pm
Reply with quote

@ Bill

Very magnificent example. But a long as Mr. vinayknj doesn't accept, that he can't code a a instuction, whatever instruction it will be, directly followed by a constant-declaration, all our strenuous efforts will have no success.
Back to top
View user's profile Send private message
nigelosberry

New User


Joined: 06 Jan 2009
Posts: 88
Location: Ggn, IN

PostPosted: Tue May 17, 2011 4:17 pm
Reply with quote

vinayknj wrote:
Thanks Nihal/peter. Sorry for troubling u with silly questions.

I understood that we shouldn't execute the data fields and we should branch to the instructions instead.

I included below Branch instruction but still I am getting SOC1 abend.

DISMSG WTO TEXT=MSG1,ROUTCDE=11
B BACK .
MSG1 DC H'05'
DC CL5'VINAY'
FILLER DC 80CL1' '
BACK XR R15,R15
RETURN
END



Vinay,

Its not practical to predict the reason for error without seeing the whole program and the dump in a few cases.

If you are a beginner and are willing to learn assembler(that's what I feel after seeing your code) then you better get a tutorial and have a detailed study of the most basic topics first. You can solve your problems yourself once you have a "minimum working knowledge" of assembler.

You could try searching a few useful links to documents/tutorials in older posts of this forum.
Back to top
View user's profile Send private message
vinayknj

New User


Joined: 26 May 2008
Posts: 50
Location: Bangalore

PostPosted: Tue May 17, 2011 4:46 pm
Reply with quote

Thanks Nihal.

I was able to remove the Abend after using RETURN (14,12),RC=0. Thanks a lot for your help.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue May 17, 2011 4:49 pm
Reply with quote

Ok, this is my last input, being a skeleton for an assembler program :

Code:

R0       EQU   0                                                        00010021
R1       EQU   1                                                        00020021
R2       EQU   2                                                        00030021
R3       EQU   3                                                        00040021
R4       EQU   4                                                        00050021
R5       EQU   5                                                        00060021
R6       EQU   6                                                        00070021
R7       EQU   7                                                        00080021
R8       EQU   8                                                        00090021
R9       EQU   9                                                        00100021
R10      EQU   10                                                       00110021
R11      EQU   11                                                       00120021
R12      EQU   12                                                       00130021
R13      EQU   13                                                       00140021
R14      EQU   14                                                       00150021
R15      EQU   15                                                       00160021
*                                                                       00170021
MCC85C   CSECT                                                          00180021
         SAVE  (14,12),,MCC85C_&SYSDATE._&SYSTIME                       00190021
         LR    R12,R15            LOAD ENTRY POINT                      00200021
         USING MCC85C,R12         SET UP ADDRESSABILITY                 00210021
         LR    R14,R13                                                  00220021
         LA    R13,SAVE85C                                              00230021
         ST    R14,4(R13)                                               00240021
         ST    R13,8(R14)                                               00250021
         B     MCC85C01                                                 00260021
SAVE85C  DC    18F'0'                                                   00270021
MCC85C01 EQU   *                                                        00280021
*                                                       
put here all your code to execute
*
OPENCLOS L     13,SAVE85C+4                                             00250000
         RETURN (14,12),RC=0                                            00260000
*
define here all your working storage things
*
         END   MCC85C                                                   00370000

Back to top
View user's profile Send private message
nigelosberry

New User


Joined: 06 Jan 2009
Posts: 88
Location: Ggn, IN

PostPosted: Tue May 17, 2011 4:55 pm
Reply with quote

vinayknj wrote:
Thanks Nihal.

I was able to remove the Abend after using RETURN (14,12),RC=0. Thanks a lot for your help.


Happy to help! icon_smile.gif
Back to top
View user's profile Send private message
vinayknj

New User


Joined: 26 May 2008
Posts: 50
Location: Bangalore

PostPosted: Tue May 17, 2011 6:00 pm
Reply with quote

Thanks Peter and Nihal
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed May 18, 2011 7:39 am
Reply with quote

Review the following previous post as it may shed some light on your issue -

ibmmainframes.com/viewtopic.php?p=258901&highlight=#258901

Bill
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 Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top