Page 1 of 1

Remove SPACES from every record in VB file.

Posted: Sun Nov 14, 2021 12:29 pm
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.

Re: Remove SPACES from every record in VB file.

Posted: Mon Nov 15, 2021 6:09 pm
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'
/*