View previous topic :: View next topic
|
Author |
Message |
prashant tyagi
New User
Joined: 26 Apr 2013 Posts: 3 Location: india
|
|
|
|
Hi All,
I am new to this forum writing but I got one situation where I have to create a new formatted flat file which will take input from another file.
Now this input data are seprated from a single space like below
Code: |
123 ABC DEF 54C 897-2345........
234 ERFGD PQRES 69D 420........and so on |
I need the result file which will have data in formatted manner like below..
Code: |
123 ABC DEF 54C 897-2345
234 ERFGD PQRES 69D 420............... |
Please suggest.
Thanks in advance.
Code'd |
|
Back to top |
|
|
prashant tyagi
New User
Joined: 26 Apr 2013 Posts: 3 Location: india
|
|
|
|
It did not come out correctly...the desired output is below(where _ is for spaces in mainframe)
123 ABC__ DEF__ 54C 897-2345 and so on
234 ERFGD PQRES 69D 420_____ and so on
Thanks |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Since you have posted in the JCL forum, can we assume you want to use SyncSort to do this?
If so, you want to look at PARSE in the manual and find examples of its use. You need something very simple, as you have nothing complex to identify the different elements, and then all you need to do is make them a fixed size.
To keep the spacing you require when formatting a post, highlight the text and click the Code button. Or manually type the opening
Code: |
tag, and the closing |
. |
|
Back to top |
|
|
prashant tyagi
New User
Joined: 26 Apr 2013 Posts: 3 Location: india
|
|
|
|
Thanks Bill for the suggestion..let me try this and yes I needed one JCL for this |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
I've actually become demoralized by the "Can JCL do this" question.
I figured after a few years, people would know better, and start calling it a "batch utility" or something better than "a JCL." |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Ed,
Quote: |
I've actually become demoralized by the "Can JCL do this" question.
I figured after a few years, people would know better, and start calling it a "batch utility" or something better than "a JCL." |
Unfortunately, new students/freshers are still being taught this is ok. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Ed Goodman wrote: |
I've actually become demoralized by the "Can JCL do this" question.
I figured after a few years, people would know better, and start calling it a "batch utility" or something better than "a JCL." |
Which has resulted in the irascible posts of the general tone, "No, you can't do it with 'JCL'; you can use any of the following utilities, and when decide which of them to use, we'll give you advice and help, but until you learn the difference, you're out of luck". |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
I think my issue comes from the fact that it's a constant stream of new programmers. My introverted world view sees this board as kind of a person, and I just kind of expected them to 'get it' by now.
It's like throwing sand in the wind though, nothing sticks, nothing stays, no one looks back and sees the pile of information laying right there at their feet. They just throw a new question out like it's the first time.
There was a series of commercials for a telephone company called Vonage. The hook was showing a huge pile of crumpled up phone bills and then a person would stand there and crumple up their phone bill and throw it on the pile. That's what it's like now.
I mean, this isn't the fresher board. I expect it there.
www.youtube.com/watch?v=azDCNPAHWLg |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
There are places where they still call JCL as a "Language" |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Well, the L in JCL is for Language - it is just that it is not a progamming language.
I regard my run decks as a memo from me to the OS - please Mr OS, do these things for me. The JCL does nothing itself - it simply transfers the request. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Ed Goodman wrote: |
I think my issue comes from the fact that it's a constant stream of new programmers. My introverted world view sees this board as kind of a person, and I just kind of expected them to 'get it' by now. |
ISTR a post stating that being a senior member of this board is like being a second grade teacher. Most of the students do learn, grow, and move on...but every year, there's a new crop of second graders. |
|
Back to top |
|
|
|