IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Delete specific column in a member in dataset


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
HappySrinu

Active User


Joined: 22 Jan 2008
Posts: 194
Location: India

PostPosted: Fri Mar 14, 2008 12:35 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 14, 2008 12:51 pm
Reply with quote

Please give an example of what you want to do
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Mar 14, 2008 12:54 pm
Reply with quote

google for "ispf column manipulation macros"
Back to top
View user's profile Send private message
HappySrinu

Active User


Joined: 22 Jan 2008
Posts: 194
Location: India

PostPosted: Fri Mar 14, 2008 12:57 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 14, 2008 1:02 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Mar 14, 2008 1:03 pm
Reply with quote

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 icon_evil.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 14, 2008 1:05 pm
Reply with quote

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
View user's profile Send private message
HappySrinu

Active User


Joined: 22 Jan 2008
Posts: 194
Location: India

PostPosted: Fri Mar 14, 2008 1:26 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Mar 14, 2008 2:28 pm
Reply with quote

change the bounds and shift left 2.
Back to top
View user's profile Send private message
MCEVOY

New User


Joined: 21 Nov 2005
Posts: 18

PostPosted: Fri Mar 14, 2008 3:54 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
Search our Forums:

Back to Top