View previous topic :: View next topic
|
Author |
Message |
vy
New User
Joined: 16 Jun 2009 Posts: 9 Location: schaumburg
|
|
|
|
Hi,
I got the following problem when I did HEX ON on my sequential file.
For spaces hex vales is 404040 but I see FFFFF when i try to press space cursor goes to end of this FFFFF. How to find this programitically.
I tried numeric low-values high-values. It dint work. Please suggest me some options.
VY |
|
Back to top |
|
|
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What is the definition of the field at that location in the file? A binary (COBOL COMP) field with negative one in it would have a hex representation of FFFF and that would be valid. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
I'm feeling dumb and not even able to understand what problem is being asked here... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
what does FFFFFFFF indicates in sequential file when hex on? |
technically correct and useless answer...
( but also the question falls into the useless category )
the presence of bytes with an x'ff' value, nothing more, nothing less |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Anuj, I suspect the practical issue is that when you're in ISPF editor and attempt to change non-displayed characters (such as x'FF'), ISPF doesn't make the change and puts the cursor on the first displayable character after the one where the cursor was.
Which in turn raises the issue of why someone is attempting to edit a production file? And why they don't understand internal representation of data fields? And .... |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
it is true, you can not change the non-display char when you attempt to change the character.
but, if you change the hex representation (which is there when you HEX ON) you can effectively change the non-display char.
now, why the TS did not try this????
It never ceases to amaze me how many people try something only one time,
(after spending ages working up the nerve to touch the keyboard)
and never try to experiment or learn something on their own.
it's always the it doesn't work. you can almost hear the whining. |
|
Back to top |
|
|
vy
New User
Joined: 16 Jun 2009 Posts: 9 Location: schaumburg
|
|
|
|
Field is defined as numeric and I am getting problem while trying to generate a report by doing computations. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Field is defined as numeric |
This is just as meaningful as saying the field is blue. Do you mean the field is defined as a binary number, as a packed decimal number, as a display number, or even as a floating point number? All four are "numeric" fields but the hex representations for each are quite different -- and for one of them the hex value FFFFFFFF is a valid numerical value. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
"Field is defined as numeric" doesn't tell us much. There are several ways a field can be defined as numeric as far as COBOL is concerned: display, internal decimal, external decimal, binary, etc. In what language are you trying to do your computations in?
P.S. Robert keys faster than I do. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Robert Sample wrote: |
And why they don't understand internal representation of data fields? .... |
I believe, problem with lots of posters around here is they post in with pre-defined mind-set-up about the problem.
If some one is generating the report, with some amount/counts - why in the heaven do they want to play through that report using ISPF, I wonder Robert. |
|
Back to top |
|
|
|