View previous topic :: View next topic |
Author |
Message |
nadh Intermediate
Joined: 08 Oct 2004 Posts: 192 Topics: 89
|
Posted: Wed Sep 05, 2007 3:59 am Post subject: 40 in HEX format |
|
|
Hi,
I have a file of mode VB. I'm giving first two lines of data in the file for eg.
[code:1:2b4805cec8]
------------------------------------------------------------------------------
...........................0726
000000000000000000000000000FFFF
0000000000000000000000000000726
------------------------------------------------------------------------------
0000000300008378952007518.. |
|
Back to top |
|
 |
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Wed Sep 05, 2007 4:39 am Post subject: |
|
|
The X'40' is blank padding, perhaps the records are being written out as fixed instead of variable...
Please post the code relating to your output - if COBOL, the SELECT and the entire FD... |
|
Back to top |
|
 |
nadh Intermediate
Joined: 08 Oct 2004 Posts: 192 Topics: 89
|
Posted: Wed Sep 05, 2007 4:46 am Post subject: |
|
|
Hi,
The program is written in Telon. I checked it its written using VB. please find the code.
DATASET NAME=MDZCO01,ACCESS=SEQUENTIAL,OPEN=OUTPUT,
LRECL=(00031,01107)
MDZCO01 RECORD @DEFINE,COPY=NONE,COPYLV1=N
CREATE MDZCO01
BATCHPGM
END
Thanks
nadh. |
|
Back to top |
|
 |
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Wed Sep 05, 2007 5:03 am Post subject: |
|
|
Sorry, I don't speak Telon....
If the file is actually variable, then the length specified during the write is incorrect...... |
|
Back to top |
|
 |
nadh Intermediate
Joined: 08 Oct 2004 Posts: 192 Topics: 89
|
Posted: Wed Sep 05, 2007 5:27 am Post subject: |
|
|
Hi,
The output is correct, only problem is padded with x'40' at the end.
Thanks
Nadh |
|
Back to top |
|
 |
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Wed Sep 05, 2007 6:14 am Post subject: |
|
|
nadh wrote: | The output is correct, only problem is padded with x'40' at the end. | The output is not correct, what is the format of the output file VB or FB?
What's the matter, get tired of talking with me? I'll avoid the other thread if you wish....  |
|
Back to top |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Wed Sep 05, 2007 6:46 am Post subject: |
|
|
nadh wrote: | Hi,
The output is correct, only problem is padded with x'40' at the end.
Thanks
Nadh |
If the output is supposed to be variable length then it is not correct. If the output is fixed length then what would you want it padded with? |
|
Back to top |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Wed Sep 05, 2007 12:25 pm Post subject: |
|
|
If the record truly is VB, then there is a little DFSORT trick that will print off the record length from the RDW.
I've mislaid my copy otherwise I would have posted it here  |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Sat Sep 08, 2007 2:48 am Post subject: |
|
|
use browse instead of edit or view to look at the data and if the data is really vb, the spaces will not be shown. |
|
Back to top |
|
 |
|
|