View previous topic :: View next topic
|
Author |
Message |
surezznag
New User
Joined: 04 Aug 2023 Posts: 6 Location: India
|
|
|
|
Hi,
I have requirement to count the records in flat file and also sum for one comp -3 variable in file. I coded in trailer1 in sort jcl to calculate count and sum like below.
My doubt here is how to remove leading spaces when we calculate count and sum.
Ex:
current output:
8| 68|
expected output:
8|68|
Please can any one help me to code to remove leading spaces in trailer1. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2141 Location: USA
|
|
|
|
surezznag wrote: |
Hi,
I have requirement to count the records in flat file and also sum for one comp -3 variable in file. I coded in trailer1 in sort jcl to calculate count and sum like below.
My doubt here is how to remove leading spaces when we calculate count and sum.
Ex:
current output:
8| 68|
expected output:
8|68|
Please can any one help me to code to remove leading spaces in trailer1. |
1. Learn to post your code in a polite manner:
2. Present a sample of your code: what have you tried so far? If nothing, then your request to be ignored.
3. Hint: RTFM about parameters JFY=, and SQZ= |
|
Back to top |
|
|
|