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

How to remove null characters(dots) frm the record


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rgupta71

Active User


Joined: 21 Jun 2009
Posts: 160
Location: Indore

PostPosted: Mon Jul 27, 2009 3:46 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jul 27, 2009 3:52 pm
Reply with quote

Hex 40 is a blank.
What is the RECFM & LRECL of the file
Are you looking with BROWSE, VIEW or EDIT
Back to top
View user's profile Send private message
rgupta71

Active User


Joined: 21 Jun 2009
Posts: 160
Location: Indore

PostPosted: Mon Jul 27, 2009 3:56 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jul 27, 2009 4:19 pm
Reply with quote

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
View user's profile Send private message
rgupta71

Active User


Joined: 21 Jun 2009
Posts: 160
Location: Indore

PostPosted: Mon Jul 27, 2009 4:22 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jul 27, 2009 4:34 pm
Reply with quote

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
View user's profile Send private message
rgupta71

Active User


Joined: 21 Jun 2009
Posts: 160
Location: Indore

PostPosted: Mon Jul 27, 2009 4:43 pm
Reply with quote

You are right expat I have just masked the KEY.

Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jul 27, 2009 4:48 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jul 27, 2009 5:07 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jul 27, 2009 8:29 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
Search our Forums:

Back to Top