Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Need to know the line command to shift values in the middle
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: 6967
Location: porcelain throne

PostPosted: Wed Apr 16, 2008 1:28 pm    Post subject:
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: 216
Location: India

PostPosted: Wed Apr 16, 2008 1:58 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed Apr 16, 2008 2:31 pm    Post subject: Reply to: Need to know the line command to shift values in t
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed Apr 16, 2008 2:55 pm    Post subject: Reply to: Need to know the line command to shift values in t
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: 6967
Location: porcelain throne

PostPosted: Wed Apr 16, 2008 3:02 pm    Post subject:
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: 216
Location: India

PostPosted: Wed Apr 16, 2008 3:27 pm    Post subject: Re: Reply to: Need to know the line command to shift values
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: 8593
Location: Back in jolly old England

PostPosted: Wed Apr 16, 2008 3:33 pm    Post subject: Re: Reply to: Need to know the line command to shift values
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us