Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6968
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: 215
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: 10326
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: 10326
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: 6968
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: 215
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us