View previous topic :: View next topic |
Author |
Message |
Rama_Prayaga Beginner

Joined: 20 May 2003 Posts: 45 Topics: 15
|
Posted: Tue May 20, 2003 7:24 am Post subject: Facing a problem with a Hexadecial value X'16' |
|
|
Hi listing,
I am facing a typical problem
PROBLEM: I am using a input file which contains a hexadecimal value of X'16' for one varialble.
Now I am genrating a output file using this INPUT file.I am getting that X'16' value for the same variable into output file also.
Now the problem there is another program which uses the same input file and generates a output doesn't generate this Hexadeciamal value X'16' for the variable.both program are coded in the same way.I want to know the Reason
Looking forward for your replies.Its a high prority one.
Regards,
Ram  |
|
Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Tue May 20, 2003 10:39 am Post subject: |
|
|
Ram,
I doubt, if it has got anything to do with X value. As a sanity check, try changing the X'16' to something more meaningful; say, X'5B' for $ sign. Then, run your programs. If $ also does not appear, then, it means, your second program is not writing the field itself !
If it does appear, then I am afraid, I do not know the answer to that. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
 |
CaptBill Beginner
Joined: 02 Dec 2002 Posts: 100 Topics: 2 Location: Pasadena, California, USA
|
Posted: Tue May 20, 2003 12:52 pm Post subject: |
|
|
I'd ask how the field's value is propogated to the output in the first program and how is is propogated in the second program.
Answer those and you may have your answer. |
|
Back to top |
|
 |
Rama_Prayaga Beginner

Joined: 20 May 2003 Posts: 45 Topics: 15
|
Posted: Tue May 20, 2003 11:12 pm Post subject: |
|
|
HI,
Cogito-Ergo-Sum,
CaptBill,
I have checked by moving space to that particular variable position and able to fix this.This is the tempory fix for the program now.What I wanted to is reason why this two programs are behaving it this way.
Hi Captbill,
The only difference in these two programs is
-> In the program which is not displaying the special character X'16' data is populated using a suprogram which is not the case in this program(MY program).
-> I tried using the same logic and same subrogram but was unable to generate the same output.I mean I was not able to supress this X'16' char for that variable.
Hope I am Clear,Please let me know if I am not.
Ram |
|
Back to top |
|
 |
Rama_Prayaga Beginner

Joined: 20 May 2003 Posts: 45 Topics: 15
|
Posted: Fri May 23, 2003 3:23 am Post subject: |
|
|
Hi,
I have gone throughly the two programs thoughly and found that a assembler routine was used .The Record is passed to this routine which converts all the special hexadecimal characters into spaces X'40'.I used the same routine for my program and converted all the special Hex charaters into blanks.Its working fine.
Thanks for your support friends.
Ram. |
|
Back to top |
|
 |
|
|