Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SOC4 abend while migrating the PL/1 code to COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
diwakar_rao

New User


Joined: 04 Mar 2007
Posts: 14
Location: Chennai

PostPosted: Tue May 13, 2008 4:55 pm    Post subject: SOC4 abend while migrating the PL/1 code to COBOL
Reply with quote

Hi,

I am migrating the below code in PL/1 to COBOL

PL/1
===

DCL PTR3 POINTER;
DCL CHAR4 CHAR(4) BASED(PTR3);
PTR3->CHR4='ABCD';

COBOL
=====

01 PTR3 POINTER in LOCAL STORAGE SECTION
01 CHAR4 PIC x(4) in LINKAGE SECTION

SET ADDRESS OF CHAR4 TO PTR3
SET PTR3 TO ADDRESS OF CHAR4
MOVE "ABCD" TO CHAR(4)

But i am getting SOC4 abend when i run in COBOL

Regards,
Bharat
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Tue May 13, 2008 6:59 pm    Post subject:
Reply with quote

How are you getting the address of CHAR4?
Is this a called subroutine?
Does the PROCEDURE DIVISION have a USING CHAR4?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Wed May 14, 2008 12:26 am    Post subject:
Reply with quote

SET ADDRESS OF CHAR4 TO PTR3

what does ptr3 contain when the above is executed.

Code:

SET ADDRESS OF CHAR4 TO PTR3
SET PTR3 TO ADDRESS OF CHAR4
MOVE "ABCD" TO CHAR(4)



the two set commands make no sense in cobol. also, I hope the CHAR(4) is a typo.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us