Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to remove null characters(dots) frm the record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to remove null characters(dots) frm the record
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 27, 2009 3:52 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 27, 2009 4:19 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 27, 2009 4:34 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 27, 2009 4:48 pm    Post subject:
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Mon Jul 27, 2009 5:07 pm    Post subject:
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

Site Director


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

PostPosted: Mon Jul 27, 2009 8:29 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us