View previous topic :: View next topic
|
Author |
Message |
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 194 Location: India
|
|
|
|
Hello All,
Requirement: Having a member in a dataset. Now want to delete the specific length based on column width.
I am able to do for row's using X command but looking for column basis, Are there any commands exist.
Thanks,
Srini |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Please give an example of what you want to do |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
google for "ispf column manipulation macros" |
|
Back to top |
|
|
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 194 Location: India
|
|
|
|
0IEBGENER *lvl srini.test.dataset
0IEBGENER *lvl srini.test.dataset
0IEBGENER *lvl srini.test.dataset
0IEBGENER *lvl srini.test.dataset
0IEBGENER *lvl srini.test.dataset
ONE OF THE LINES IN A MEMBER IS SHOWN ABOVE, NOW I WANR TO DELETE 'IEB' OR '0' IN THE FIRST COLUMN
ANY COMMANDS , PLS |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Did you know that there is a button at the top of this page "SEARCH"
Look what I found using it - might not be perfect but should point you in the right direction.
http://ibmmainframes.com/about16666.html |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
if ISPF had some direct commands to do column manipulation I would have posted it,
I posted how to look for tools to achieve what You ask..
"delcols 2 4" ==> delete from column 1 to 3 and shift left
or in pure ispf as a work around
c p'^' '' 2 4 all ( non blanks )
c p'=' '' 2 4 all ( all )
it' s You who is asking for help, so it would be more polite not to shout |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Do you mean to delete only those characters or the whole line ?
If only the characters, are they replaced with spaces or nulls ? |
|
Back to top |
|
|
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 194 Location: India
|
|
|
|
All,
Thanks for the comments, I was in CAPS mode so i typed text here same . Sorry for it.
Secondly, I tried in search but may not be enough which i understood after i got link from expat.
thridly, once i deleted the specific column i would like to move the next columns to left side ti fill that gap.
i guess i got it with your help |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
change the bounds and shift left 2. |
|
Back to top |
|
|
MCEVOY
New User
Joined: 21 Nov 2005 Posts: 18
|
|
|
|
In ISPF Edit there is a BNDS Line Command which lets you set the left and right-hand sides of the data to be manipulated.
1) Puts BNDS against a line
2) Position the red '<' and '>' indicators as appropriate
3) Use the (( Line Commands to shift your data left
4) Reset the BNDS commands to encompass the whole line
If you just want to get rid of the first 3 bytes in each line, this can be accomplished with the (( Line Command alone. |
|
Back to top |
|
|
|