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
 

 

Process bad data in packed field..

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

New User


Joined: 17 Jun 2005
Posts: 14
Location: Chennai

PostPosted: Thu Mar 23, 2006 8:36 am    Post subject: Process bad data in packed field..
Reply with quote

Hi all,

I ran into this situation and needs everyone help.

I have a 4 byte packed field defined in a file. In the program, if the field is populated with value I am using the field.

But, I have bad data like null values (x'00000000') and spaces (x'40404040') in some records in this field. Now, I wanted to compare the packed field with these values and if it is present, I wanted to move zeroes into it. I need to process these records, i cannot bypass it.

When I tried comparing, it gave me compilation error as expected. I wanted to know if they is a way to process it.

Please let me know.

Thanks,
Virgon
Back to top
View user's profile Send private message

ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Thu Mar 23, 2006 8:50 am    Post subject: Re: Process bad data in packed field..
Reply with quote

Well I see couple of solutions here ( if I understand your problem correctly).

1. Check for that field agianst IS NUMERIC.
2. Why can we inspect that field for SPACE and NULL values and replace them with zeroes, instead of comparing???

Let us all know if this doesnt work.
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 Data replication from multiple Db2 ta... kishpra DB2 1 Mon Mar 27, 2017 9:58 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm


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