Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : All available storage is assigned to the job or jobstep, If REGION is coded 0K or 0M

Google
 
Web mainframegurukul.com

How to debug a simple cobol program using xpeditor?

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> XPEDITER
  View previous topic :: View next topic  
Author Message
anilsani285
Member


Joined: 04 Jul 2010
Posts: 10

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Sun Jul 04, 2010 5:35 pm    Post subject: How to debug a simple cobol program using xpeditor? Reply with quote

1. I want to know all the simple complicated commands that are required to debug a simple Cobol program.

2. how to debug the Cobol code in reverse order also
_________________
Anil-Sani
Back to top
View user's profile Send private message Send e-mail
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.

dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 975

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Sun Jul 04, 2010 6:20 pm    Post subject: Reply with quote

sorry,

I only know complicated simple commands that are required to debug complex cobol programs.

also, since the computer executes commands from start to finish, i have never been interested in running my cobol code in the opposite direction.

PF1 would be a good place to start, since you are obviously too lazy to look at manuals,
which will be at your site, as well as other documentation.
_________________
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
anilsani285
Member


Joined: 04 Jul 2010
Posts: 10

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Sun Jul 04, 2010 6:50 pm    Post subject: Reply with quote

Thanks for the reply....
i am very new to this tool ... i had one more question ..

suppose i had program that reads a file(10000 records) and move the data to some other ws-item because of the bad data i got SOC7. but i want to know at what record this soc7 had been raised it using xpeditor tool.
_________________
Anil-Sani
Back to top
View user's profile Send private message Send e-mail
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 975

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Sun Jul 04, 2010 7:40 pm    Post subject: Reply with quote

Quote:
but i want to know at what record this soc7 had been raised it using xpeditor tool.


wrong tool for the job.

use the verify statement of your sort product to determine which record contains the bad data.

Or, change your program to determine when you have non-numerics and display the bad record number as well as the data that is contained. This type of pseudo-proofing code is normally in a well written program if you know or fear that you have input data that is output from a poorly written sub-system.

you use xpeditor to debug program logic, not to find bad data in input files.
_________________
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Natarajan
Moderator


Joined: 10 Oct 2008
Posts: 537
Location: chennai

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Sun Jul 04, 2010 9:11 pm    Post subject: Reply with quote

I agree with Dick comments.

To resolve S0C7 refer following...
http://www.mainframegurukul.com/ibmmainframeforums/viewtopic.php?t=3586&highlight=s0c7



For XPEDITER tutorial refer..
http://www.mainframetutorials.com/XPEDITER.html
_________________
Natarajan
Chennai
Back to top
View user's profile Send private message Visit poster's website
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 975

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Sun Jul 04, 2010 11:01 pm    Post subject: Reply with quote

in addition, when you receive your S0C7, you can look at memory and see what record is there, as well as the invalid data.
_________________
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Jan 22, 2016 12:27 am    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> XPEDITER All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts How to write a JCL using IEBCOMPR 5 IEBCOMPR 18575 Mon Feb 01, 2016 10:59 pm
academyindia4 View latest post
No new posts main & sub programs using the same table !! 1 arrbee 6270 Tue Mar 10, 2009 3:02 pm
Anuj Dhawan View latest post
No new posts db2 query 4 thiyagucse 11659 Fri Aug 29, 2008 10:31 am
Krishna View latest post
No new posts How to find out the record length using tso command? 4 bsriram 17402 Fri Oct 26, 2007 12:17 am
varun View latest post
No new posts how submit cobol,cics,db2 program using jcl 1 pankaj 9889 Wed Apr 12, 2006 12:05 pm
arrbee View latest post
 


Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-5181.html