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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am


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