View previous topic :: View next topic
|
Author |
Message |
rgupta71
Active User
Joined: 21 Jun 2009 Posts: 160 Location: Indore
|
|
|
|
Hi Experts,
Please help me out in sorting a dataset.
The dataset is created by doing ftp and is taking null charactes in the end.
How to remove null characters from the end and in between. Below is the snapshot of the input file.
Code: |
----+----1----+----2----+
----+----F----+----F----+
----+----1----+----2----+
------------------------
*************************
------------------------
04.ABCDEFG...
FF0DFFFFFFFF0004444444444
0453102004195550000000000
------------------------
04.ABCDEFH...
FF0DFFFFFFFF0004444444444
0453102060915550000000000
---------------------- |
Thanks |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Hex 40 is a blank.
What is the RECFM & LRECL of the file
Are you looking with BROWSE, VIEW or EDIT |
|
Back to top |
|
|
rgupta71
Active User
Joined: 21 Jun 2009 Posts: 160 Location: Indore
|
|
|
|
Hi expat ,
I am looking it in browse mode.
When I am opening it in in view mode it is not showing any dots.
In this step I am converting VB to FB
RECFM is FB and LRECL=80 |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
If you are converting VB to FB, then you should expect to have blanks at the end of the data to make up the FB record length. |
|
Back to top |
|
|
rgupta71
Active User
Joined: 21 Jun 2009 Posts: 160 Location: Indore
|
|
|
|
You are right expat.
I used this SORT CARD
SORT FIELDS = COPY
OUTFIL FNAMES=SORTFB, VTOF,OUTREC = (5,80)
But it is showing dots.I don't know the reason.
Thanks. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I have taken your cut and paste from the original post, and the hex representation does not corespond to what is actually shown.
Code: |
----+----1----+----2----+
----+----F----+----F----+
----+----1----+----2----+
------------------------
*************************
------------------------
04.ABCDEFG...
FF0DFFFFFFFF0004444444444
0453102004195550000000000
------------------------
04.ABCDEFH...
FF0DFFFFFFFF0004444444444
0453102060915550000000000
---------------------- |
|
|
Back to top |
|
|
rgupta71
Active User
Joined: 21 Jun 2009 Posts: 160 Location: Indore
|
|
|
|
You are right expat I have just masked the KEY.
Thanks |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Well, if the dots are not in the source file, and are there after the ftp process, then you need to investigate why the ftp process adds the dots.
If they are not there, but you your sort card seems OK ...... |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You might want to investigate the source of the file. You have hex '05' characters in your file, which are horizontal tab (HT) characters. If the file is starting as a tab-delimited file, you may need to convert each hex '05' to a number of spaces for the file to be properly handled. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you are receiving this record, one easy thing to do is UNSTRING the content into the needed field using the tab character (x'05') as the delimiter. |
|
Back to top |
|
|
|