Any short cut to get columns from a file?
Moderator: mickeydusaor
-
- New Member
- Posts: 4
- Joined: Sun Nov 23, 2014 4:01 pm
Any short cut to get columns from a file?
Hi All,
Can any one guide me for the short cuts to cut/replace the columns in a PS file.
Thanks
Can any one guide me for the short cuts to cut/replace the columns in a PS file.
Thanks
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: Any short cut to get columns from a file?
Could you please explain your requirement with sample input and expected output given within code tags?
zprogrammer
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Any short cut to get columns from a file?
Using what -- a batch program (which program)? ISPF Edit? SAS? Something else you did not bother to explain?
Re: Any short cut to get columns from a file?
Assuming you mean the ISPF editor then have you looked at the BOUNDS/BNDS command? It may be worth playing with the Format Mode.
[Edit] Having re-read your post (for the third time) I am not quite sure what you are trying to achieve so an example would be helpful.
[Edit] Having re-read your post (for the third time) I am not quite sure what you are trying to achieve so an example would be helpful.
Regards
Nic
Nic
-
- New Member
- Posts: 4
- Joined: Sun Nov 23, 2014 4:01 pm
Re: Any short cut to get columns from a file?
Thanks for the answers and sorry if I did not make much sense.
Robert: I need this using ISPF commands. I thought it was obvious when I posted it in ISPF Forum but I shall make sure it next time.
For example, if I have a file like this:
I just want to cut entire "EE column" and create a separate file with those values.
Robert: I need this using ISPF commands. I thought it was obvious when I posted it in ISPF Forum but I shall make sure it next time.
For example, if I have a file like this:
Code: Select all
abcdEEff
abcdEEff
abcdEEff
abcdEEff
-
- New Member
- Posts: 4
- Joined: Sun Nov 23, 2014 4:01 pm
Re: Any short cut to get columns from a file?
Hi nicc,
I have read about BOUNDS and I think it can help me. Thanks for the hint.
I have read about BOUNDS and I think it can help me. Thanks for the hint.
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Any short cut to get columns from a file?
It is quite common on this forum for posts to NOT be placed in the correct location. Merely putting a post in the ISPF section may indicate that you want an ISPF solution to you, but it could also indicate you want a batch solution and did not post in the right section. Fully specifying your question will get you better answers faster than merely assuming that we understand you posted in the correct place.
-
- New Member
- Posts: 4
- Joined: Sun Nov 23, 2014 4:01 pm
Re: Any short cut to get columns from a file?
I shall take care about this going forward. I did not mean to offend you. Sorry if it was not appropriate.
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Any short cut to get columns from a file?
I was not offended. However, you made the assumption that because you posted in the TSO, ISPF & REXX forum that we would understand you wanted an ISPF solution. The first problem with this assumption is that TSO has a native line editor (invoked with the EDIT command) which is NOT under ISPF control but could be used for what you asked. The second problem with this assumption is that experienced responders are not going to assume the use of ISPF (at least not without confirming that choice) since you could have been asking about native TSO EDIT, or you could have posted in the wrong forum and been looking for a non-ISPF, non-TSO solution. Providing a complete problem statement in your initial post improves the quality of the responses you get, as otherwise when we respond we have to explicitly state the assumptions -- notice the first word of nicc's response.
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