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

s0c7


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ksivapradeep

New User


Joined: 30 Jul 2004
Posts: 95

PostPosted: Wed Sep 08, 2004 3:25 pm
Reply with quote

when i am passing values to the program using parm parameter the coding is

DATA DIVISION.
WORKING-STORAGE SECTION.
77 C PIC 9(4).
LINKAGE SECTION.
01 P-LENGTH PIC 9(3).
01 GR-1.
05 A PIC 9(2).
05 B PIC 9(2).
PROCEDURE DIVISION USING GR-1.
COMPUTE C = A + B.
DISPLAY C.
STOP RUN.
=========
i passed PARM=(2,2),then got s0c7 abend
i know the way of rectifying it,i got the PU OFFSET address +00000254 in CEEDUMP then i copied last 4 digits(0254) and in SYSPRINT (compile time)
i typed that offset address as F ALL 0254 but the s0c7 effected data item didnt highlighted what i have to do is there any thing wrong please help me
Back to top
View user's profile Send private message
bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Wed Sep 08, 2004 5:54 pm
Reply with quote

ND you should pass PARM=(0202)

unless you add a filler (PIC X(1)) between the two variables
in which case you should pass PARM=(02,02)

hope it helps
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Sep 08, 2004 7:57 pm
Reply with quote

bluebird, maybe it's how I'm reading the post, but I think the poster was intentionally creating the S0C7 error, and was seeking information on how to resolve this type of error by looking at the contents of the the program dump.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Sep 10, 2004 3:39 am
Reply with quote

Hi K,

I congratulate you for not asking for a solution to your problem, but for help in solving it.

What you might try is to recompile your pgm using LIST,NOOFF as 2 of your compiler parm options. This will give you a listing containing the actual assembler language instructions generated by your COBOL code.

Then re-execute your pgm and do exactly what you did before. But be aware that "F ALL 0254 " will point you not to the data area, but to the failing assembler instruction.

Also, you might want to re-read the manual section on defining the parm field in the Linkage Section of the pgm.

Good luck and keep us informed of your progress.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts S0C7 - Field getting overlayed COBOL Programming 2
No new posts S0C7 abend while running a Cobol Program COBOL Programming 2
No new posts S0C7 abend not able to locate COBOL Programming 8
No new posts S0C7 Data Exception Error ABENDS & Debugging 4
No new posts S0C7 issued on a CALL statement ABENDS & Debugging 8
Search our Forums:

Back to Top