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
 
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 Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm

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