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

Need to know the line command to shift values in the middle


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

New User


Joined: 20 Jan 2004
Posts: 42

PostPosted: Wed Apr 16, 2008 1:15 pm
Reply with quote

Hi Guys,

I need to know the line command to shift the value in the middle of the sequential file. For example

Row 1: AAAAAAAA12345( Bfore change)

Row 1: AAAAAAAA 12345(After change)

In after change row i want 5 pos to be shifted to right.

Any help in this regard would be highly appreciated.
Thanks
Shakti
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Wed Apr 16, 2008 1:28 pm
Reply with quote

)) and >> are both line commands to shift column/data

in combination with the bounds command, you can manipulate subsets of your data.

Edit and Edit Macros, SC34-4820-05

in the future, please use code/code tags to post examples; it makes for easier reading.
Back to top
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 218
Location: India

PostPosted: Wed Apr 16, 2008 1:58 pm
Reply with quote

[quote="dbzTHEdinosauer"Edit and Edit Macros, SC34-4820-05
.[/quote]

can u throw some light on these edit macros ..n how to use them
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Apr 16, 2008 2:31 pm
Reply with quote

use the BNDS command to delimit the columns to be acted upon
Back to top
View user's profile Send private message
shakti

New User


Joined: 20 Jan 2004
Posts: 42

PostPosted: Wed Apr 16, 2008 2:50 pm
Reply with quote

Hi enrico,

Could you please give one practical example to understand more clearly.

Thanks
Shakti
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Apr 16, 2008 2:55 pm
Reply with quote

Code:
=BNDS>          <              >
000001 //IBMUSERA JOB (ACCT#),'AA',NOTIFY=IBMUSER,


only the columns between th boundaries will be modified bay edit commands

shift/find/change

to reset issue the command "bnds" without any operand ant it will reset the bounds

PF1/PF13 is ISPF user' s best friend
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Wed Apr 16, 2008 3:02 pm
Reply with quote

Shakti,

is there a chance that you would RTFM?
Edit and Edit Macros, SC34-4820-05, ISPZEM50

This manual is pretty good, has examples and explanations.
and it is just too much work to 'code' an example here.
Back to top
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 218
Location: India

PostPosted: Wed Apr 16, 2008 3:27 pm
Reply with quote

Really a gud commad "BNDS"

Thank u enrico..

Dick i have no idea on edit amcros can u provide some info icon_idea.gif
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Apr 16, 2008 3:33 pm
Reply with quote

sri_mf wrote:
Dick i have no idea on edit amcros can u provide some info icon_idea.gif

Did you not read Dick's post immediately before your own ???
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top