IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Showing 'INVALID' in file


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Wed Aug 24, 2011 3:24 pm
Reply with quote

Hi,

When I map a file using a copybook in file-aid a particular 2 fields shows as values 'INVALID' but if I browse using option 3.4 i can see the values.

Below is the screen shots of those 2 fields when I map using a copybook:-

PROVIDER-PAID-AMOUNT
9/NUM
(301-309)
55------------------
************* TOP OF
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID

SERVICE-UNITS
7/NUM
(186-192)
45-----------
DATA *******
INVALID
INVALID
INVALID
INVALID

Could anyone please let me know why is this.

Thanks.
Back to top
View user's profile Send private message
Soumik Das

New User


Joined: 06 Aug 2011
Posts: 25
Location: India

PostPosted: Wed Aug 24, 2011 3:30 pm
Reply with quote

no we cant....

the reason is you have only given half of the info....show us the details via 3.4 option and set the HEX to ON.

Only then we might be able to help you.
Back to top
View user's profile Send private message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Wed Aug 24, 2011 4:05 pm
Reply with quote

Here is it for the Amount field,

Code:
---------
    14649
4444FFFFF
000014649
---------
     5261
44444FFFF
000005261
---------
     1689
44444FFFF
000001689
"Code'd"
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Aug 24, 2011 4:10 pm
Reply with quote

Mmmm... looks invalid enough to me, in that the value does not conform to a numeric display picture.

That is even when looking at it "Code"d, so we can see the spacing!

You have four leading blanks/spaces (the hex 40's). Shouldn't be lying around in a PIC 9(n) field. You're lucky FileAid caught it for you, as it is not the sort of thing which makes your program go S0C7.
Back to top
View user's profile Send private message
Soumik Das

New User


Joined: 06 Aug 2011
Posts: 25
Location: India

PostPosted: Wed Aug 24, 2011 4:13 pm
Reply with quote

ahem... when I said to show us the details I meant to use BBcode..

Please use that format so that we can help you better.....whatever you have put there is seriously unformatted and I have better things to do than solve petty formatting issues...

Plus where is the copybook structure....????
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 24, 2011 4:31 pm
Reply with quote

this should not be in cobol forum.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Aug 24, 2011 4:58 pm
Reply with quote

dbzTHEdinosauer wrote:
this should not be in cobol forum.


...although it might come back when the TS wants to know the exciting way he has achieved this in his Cobol program...

Better to start a new topic for that, hint, hint, kumar1234.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Aug 24, 2011 5:21 pm
Reply with quote

Quote:
Better to start a new topic for that

or even look at the many topics discussing character and numeric and keeping them straight.

Almost 4 years on the board and TS has still not found the 'Code' button.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top