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
 

 

where to find compile listing of the production program soc7

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
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    Post subject: where to find compile listing of the production program soc7
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: 7992
Location: Bellevue, IA

PostPosted: Fri Jul 17, 2009 8:38 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Jul 20, 2009 6:34 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Jul 20, 2009 7:04 pm    Post subject: Reply to: where to find compile listing of the production pr
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    Post subject:
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: 7992
Location: Bellevue, IA

PostPosted: Thu Jul 23, 2009 7:58 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Jul 24, 2009 6:15 pm    Post subject:
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    Post subject:
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    Post subject:
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: 7992
Location: Bellevue, IA

PostPosted: Tue Sep 08, 2009 3:07 pm    Post subject:
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    Post subject:
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: 7992
Location: Bellevue, IA

PostPosted: Tue Sep 08, 2009 4:46 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am


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