View previous topic :: View next topic
|
Author |
Message |
Bhupender
New User
Joined: 21 Apr 2022 Posts: 3 Location: India
|
|
|
|
Hi Everyone, GE.. I’m new to this forum.
I’m looking solutions/suggestion for my query.
I have a sequential file having record like
08:00 ABC12ABCDEF (NAME1)
10:30 GHI32ABC (NAME2)
18:15 MLM67ABCDEFGHI (NAME3)
My expectation is to get output
ABC12ABCDEF (NAME108:00)
GHI32ABC (NAME210:30)
MLM67ABCDEFGHI (NAME318:15) |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1329 Location: Bamberg, Germany
|
|
|
|
Use Code Tags when presenting Code/Data. It's that little button named code (works as a toggle).
You can try this:
Code: |
OPTION COPY
INREC IFTHEN=(WHEN=INIT,
BUILD=(7,67,JFY=(SHIFT=RIGHT,PREBLANK=C')',LENGTH=60),1,5)),
IFTHEN=(WHEN=INIT,
BUILD=(1,65,JFY=(SHIFT=LEFT,TRAIL=C')',LENGTH=80))) |
PS: z/OS knows Datasets, not Files. |
|
Back to top |
|
|
Bhupender
New User
Joined: 21 Apr 2022 Posts: 3 Location: India
|
|
|
|
Thanks Joerg. It’s working fine. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2135 Location: USA
|
|
|
|
Bhupender wrote: |
Thanks Joerg. It’s working fine. |
Now you must pay to Joerg at least for one hour of his work done for you in full, from start to finish.
Please, ask him about his hourly rate? |
|
Back to top |
|
|
|