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

where to find compile listing of the production program soc7


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
student_mf

New User


Joined: 15 Jun 2007
Posts: 23
Location: pune

PostPosted: Fri Jul 17, 2009 8:18 pm
Reply with quote

hi

program abended with a soc7 in batch and i can see only SAR pages i got the offset from there but where to to find complie listion for that job or program i dont know can you please help me out here.

thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 17, 2009 8:38 pm
Reply with quote

Some sites specify to save the production compile listing; others do not. You will need to find out from someone at your site whether or not the compile listings are saved and if so, where.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jul 20, 2009 6:34 pm
Reply with quote

Other alternative, which I use at my shop -- take the component in some package (we use change man as version control tool) from "base line" and just stage/compile it without any change. Now go through the compile-listing which are just generated...

Hope this helps.
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: Mon Jul 20, 2009 7:04 pm
Reply with quote

It would probably be best if you specify the compile options LIST,NOOFFSET to expand the Assembler code generated by the compiler.

Place the following on line one, above the ENVIRONMENT DIVISION -

CBL LIST,NOOFFSET
Back to top
View user's profile Send private message
student_mf

New User


Joined: 15 Jun 2007
Posts: 23
Location: pune

PostPosted: Thu Jul 23, 2009 7:53 pm
Reply with quote

Anuj Dhawan wrote:
Other alternative, which I use at my shop -- take the component in some package (we use change man as version control tool) from "base line" and just stage/compile it without any change. Now go through the compile-listing which are just generated...

Hope this helps.


hi Anuj,
when i asked other people who are working on application for quite some time long they said they visually check the data file for bad data and we dont have any version control tool. and they dont save any complie listing so could anyone please suggest .we do have file aid.

thanks.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Jul 23, 2009 7:58 pm
Reply with quote

You can recompile the program into a test library and save the compile output to use in your analysis (use LIST,NOOFFSET options in your compile so you get the full pseudo-assembler listing). Assuming the compiler hasn't been changed since the production version was compiled, the offset for the S0C7 should not have changed so you can then identify the statement and variable causing the problem.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Jul 24, 2009 6:15 pm
Reply with quote

Even if you not have any version control tool (though in 21st century it's hard to believe for me) you must be using some means to compile your source (COBOL) program, use that method and recompile the program into a test library as Robert has said.

PS. With the information which has been provided to Forum that's maximum, I believe, which can be suggested.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jul 25, 2009 4:47 am
Reply with quote

It sounds like you'll have to use Robert's suggestion to get a compile listing of the prod code to help you debug the Abend.

If you do make, sure that your compile JCL uses the same compiler options as the prod compile JCL, because some compiler options may generate more or less code than others and that will change the pgm offsets.

However, the LIST,NOOFF option will not change the pgm code generated.
Back to top
View user's profile Send private message
t5590ag

Active User


Joined: 21 May 2009
Posts: 139
Location: United States

PostPosted: Tue Sep 08, 2009 12:50 pm
Reply with quote

Hi, I was just going through the post and i tried using this- List,nooffset-
Code:
 EJECT                                     
 CBL LIST,NOOFFSET.                         
 ENVIRONMENT DIVISION.                     
 CONFIGURATION SECTION.                     
*SOURCE-COMPUTER. IBM-370 WITH DEBUGGING MOD


Arent these cobol keywords as I dont see them highlighted that way ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 08, 2009 3:07 pm
Reply with quote

EJECT and CBL are compiler directives, they are not COBOL keywords. The SOURCE-COMPUTER statement has been commented out, so it has no COBOL keywords. As far as the ENVIRONMENT DIVISION and CONFIGURATION SECTION, whether or not they will be highlighted depends probably upon what is doing the highlighting. Since you didn't mention that, we cannot provide any real answer to you.
Back to top
View user's profile Send private message
t5590ag

Active User


Joined: 21 May 2009
Posts: 139
Location: United States

PostPosted: Tue Sep 08, 2009 3:58 pm
Reply with quote

Am using HI COB to highlight the cobol keywords, can we highlight compiler directives as well ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 08, 2009 4:46 pm
Reply with quote

My ISPF highlights ENVIRONMENT DIVISION as well as CONFIGURATION SECTION but does nothing for the CBL directive. I do not see any option to highlight the compiler directives.
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Using API Gateway from CICS program CICS 0
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts C Compile time time stamps Java & MQSeries 10
Search our Forums:

Back to Top