Remove SPACES from every record in VB file.

IBM's Sort Product, ICETOOL, ICEMAN and ICEGENER.
Post Reply
seemajain
New Member
Posts: 8
Joined: Sat Jan 23, 2016 12:04 pm

Remove SPACES from every record in VB file.

Post by seemajain »

Hi,

I need a help to understand how to complete a task in hand. This is an intermediate part of a bigger task. What I want to ask is, I have a VB file, this will be used as input. This file has got some unwanted spaces. I need to strip off the spaces at the end of each record.

How can I do that. Could someone please suggest.
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Remove SPACES from every record in VB file.

Post by Anuj Dhawan »

Hi,

Without going into specific details, following should give you a start:

Code: Select all

//STEP1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (VB)
//SORTOUT DD DSN=...  output file (VB)
//SYSIN    DD    *
  OPTION COPY
  OUTFIL VLTRIM=X'00'
/*
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DFSort, ICETOOL, ICEMAN, ICEGENER.”