Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Regarding Cobol Files?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
vikasc4

New User


Joined: 11 Dec 2005
Posts: 32

PostPosted: Fri Feb 17, 2006 3:56 pm    Post subject: Regarding Cobol Files?
Reply with quote

I have a input file , while reading records in the file Abend came.
I want to find out which record (error Record) for this problem. Is there any ways to find out error records? can any one explain me?

How to Find that records?

i) Using tools ?
ii) Using Programming Logic?
Back to top
View user's profile Send private message

DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Fri Feb 17, 2006 8:42 pm    Post subject: Re: Regarding Cobol Files?
Reply with quote

vikasc4,

Can you give some more information?

Do you know if the error is occurring on the read or in the processing? What is the verbiage of the error massage(s) that are given? Are you being supplied with a storage dump?

Dave,
Back to top
View user's profile Send private message
lordholnapult
Currently Banned

New User


Joined: 01 Feb 2006
Posts: 5
Location: Italy

PostPosted: Sun Feb 19, 2006 7:09 am    Post subject:
Reply with quote

A file error can be tested wit the STATUS CODE , after every access to the FIle. The most common error in file reading is the 0C7 Abend.
Try turning all the numeric data of your "file record format" into char, and put some display all around move commands.

Ciao
icon_cool.gif
Back to top
View user's profile Send private message
DARAPRADEEP

New User


Joined: 13 Apr 2005
Posts: 7

PostPosted: Tue Feb 21, 2006 10:23 am    Post subject: Re: Regarding Cobol Files?
Reply with quote

Hi,
If you want which is error record, use a counter to know the record no.
ex :-
if you have 1000 records
increment the counter after successful read of file and display it. if error in the 100 record the last counter value is 99.

or check the file status and display the record.


regards,
pradeep.
Back to top
View user's profile Send private message
smiley
Warnings : 1

New User


Joined: 08 Feb 2006
Posts: 27

PostPosted: Tue Feb 21, 2006 10:49 am    Post subject:
Reply with quote

Hi Vikas,

U can use testing tools like intertest or xpeditor to find out the details.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us