Any short cut to get columns from a file?

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Sivakamy Sundaram
New Member
Posts: 4
Joined: Sun Nov 23, 2014 4:01 pm

Any short cut to get columns from a file?

Post by Sivakamy Sundaram »

Hi All,


Can any one guide me for the short cuts to cut/replace the columns in a PS file.

Thanks
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Any short cut to get columns from a file?

Post by zprogrammer »

Could you please explain your requirement with sample input and expected output given within code tags?
zprogrammer
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Any short cut to get columns from a file?

Post by Robert Sample »

Using what -- a batch program (which program)? ISPF Edit? SAS? Something else you did not bother to explain?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Any short cut to get columns from a file?

Post by nicc »

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.
Regards
Nic
Sivakamy Sundaram
New Member
Posts: 4
Joined: Sun Nov 23, 2014 4:01 pm

Re: Any short cut to get columns from a file?

Post by Sivakamy Sundaram »

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:

Code: Select all

abcdEEff
abcdEEff
abcdEEff
abcdEEff
I just want to cut entire "EE column" and create a separate file with those values.
Sivakamy Sundaram
New Member
Posts: 4
Joined: Sun Nov 23, 2014 4:01 pm

Re: Any short cut to get columns from a file?

Post by Sivakamy Sundaram »

Hi nicc,

I have read about BOUNDS and I think it can help me. Thanks for the hint.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Any short cut to get columns from a file?

Post by Robert Sample »

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.
Sivakamy Sundaram
New Member
Posts: 4
Joined: Sun Nov 23, 2014 4:01 pm

Re: Any short cut to get columns from a file?

Post by Sivakamy Sundaram »

I shall take care about this going forward. I did not mean to offend you. Sorry if it was not appropriate.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Any short cut to get columns from a file?

Post by Robert Sample »

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.
Post Reply

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

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”