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.
Remove SPACES from every record in VB file.
- Anuj Dhawan
- Founder
- Posts: 2824
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Remove SPACES from every record in VB file.
Hi,
Without going into specific details, following should give you a start:
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.
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.
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