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

How to execute a line command


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

New User


Joined: 15 Apr 2008
Posts: 39
Location: India

PostPosted: Wed Jul 02, 2008 9:22 pm
Reply with quote

Can any one please tell me how to execute a line command?
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Jul 02, 2008 9:41 pm
Reply with quote

Quote:
... execute a line command...


Can you provide more details? A line command where? To do what?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jul 03, 2008 12:27 am
Reply with quote

Try to enter the command next to the ... (guess what) ... line. icon_biggrin.gif

O.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Jul 03, 2008 1:07 am
Reply with quote

I think the OP means a line command from an ISPF EDIT macro. I don't think that's possible.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Jul 03, 2008 1:26 am
Reply with quote

Its not normally possible enter a line command from a rexx program. But for many line commands, you can do the same function from a rexx program, without having to mimic those keystrokes.

So, what line commands did you want to issue? From what panel?
Back to top
View user's profile Send private message
rajesh_m

New User


Joined: 15 Apr 2008
Posts: 39
Location: India

PostPosted: Thu Jul 03, 2008 10:36 am
Reply with quote

I want to move some columns....

For example:
Suppose i want to move particular 10 lines to a fixed position. That i want to apply all members in a PDS.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Jul 03, 2008 12:30 pm
Reply with quote

rajesh_m wrote:
Suppose i want to move particular 10 lines to a fixed position. That i want to apply all members in a PDS.

Do you mean that you want to insert lines at a given position, or to move lines from another position within the same member to the given position of the same member ?
Back to top
View user's profile Send private message
rajesh_m

New User


Joined: 15 Apr 2008
Posts: 39
Location: India

PostPosted: Thu Jul 03, 2008 12:53 pm
Reply with quote

expat wrote:
rajesh_m wrote:
Suppose i want to move particular 10 lines to a fixed position. That i want to apply all members in a PDS.

Do you mean that you want to insert lines at a given position, or to move lines from another position within the same member to the given position of the same member ?


No need to insert new lines. Just i need to move the existing lines.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Jul 03, 2008 1:23 pm
Reply with quote

Please give an example of your original input file, and what you would like the result to be.
Back to top
View user's profile Send private message
rajesh_m

New User


Joined: 15 Apr 2008
Posts: 39
Location: India

PostPosted: Thu Jul 03, 2008 2:33 pm
Reply with quote

Hi Expat,

Please look into the following example.


000100 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........
000200 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........
000300 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........
000400 ........12345678998765432123456789.........
000500 ........12345678998765432123456789.........
000600 ........12345678998765432123456789.........
000700 ........12345678998765432123456789.........

000800 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........
000900 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........

I am having 40 members like this in a PDS. I want to move only that specified 4 lines. In every member that line numbers are fixed.
After doing manipulation the four lines should move to 10th column.
Can we do this with macro.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Fri Jul 04, 2008 4:55 am
Reply with quote

Perhaps you meant the 'tenth line'.

Sorry, do not have system today, so cannot see my examples... but it is something like this (untested):
Code:

/*rexx */
Address ISREDIT
"MACRO"
"LABEL 4 =  .a"
"LABEL 7 =  .b"
"LABEL 10 = .c"
"CUT  .a .b"
"PASTE after .c"
"DELETE .a .b"





Back to top
View user's profile Send private message
rajesh_m

New User


Joined: 15 Apr 2008
Posts: 39
Location: India

PostPosted: Fri Jul 04, 2008 12:09 pm
Reply with quote

Hi Pedro,

My intention is not move to tenth line. Your macro is working fine for row wise. Same thing in a reverse way, it should be able to work on column wise. I hope you got my point.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jul 04, 2008 12:16 pm
Reply with quote

Code:
000100 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........
000200 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........
000300 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........
000400 ........12345678998765432123456789.........
000500 ........12345678998765432123456789.........
000600 ........12345678998765432123456789.........
000700 ........12345678998765432123456789.........
000800 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........
000900 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........


is this what You want ??

Code:

****** 0        1
****** 12345678901234567890
000100 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........
000200 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........
000300 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........
000400          ........12345678998765432123456789.........
000500          ........12345678998765432123456789.........
000600          ........12345678998765432123456789.........
000700          ........12345678998765432123456789.........
000800 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........
000900 ........ABCDEFGHIJKLNMOPQRSTUVWXYZ.........


You can use the shioft operator to shift right 9 columns
Back to top
View user's profile Send private message
rajesh_m

New User


Joined: 15 Apr 2008
Posts: 39
Location: India

PostPosted: Fri Jul 04, 2008 12:21 pm
Reply with quote

Hi enrico,

You are exactly correct. That is my requirement. Thankyou very much for your response.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Fri Jul 04, 2008 10:10 pm
Reply with quote

Quote:
I want to move only that specified 4 lines.

Your use of terminology mislead me. You meant shift instead of move. Move is a different line command.
Back to top
View user's profile Send private message
rajesh_m

New User


Joined: 15 Apr 2008
Posts: 39
Location: India

PostPosted: Mon Jul 07, 2008 10:05 am
Reply with quote

Sorry pedro..... Is there any possibility to achieve this functionality.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Mon Jul 07, 2008 10:17 am
Reply with quote

You should become familiar with the "Edit and Edit Macros" manual. There is a chapter for 'edit macros'

Use te SHIFT macro instruction! It would be something like this:
Code:
/*rexx*/   Address ISREDIT;  "MACRO"
Do a = 4 to 7
  "SHIFT ) " a " 10"
End
Back to top
View user's profile Send private message
rajesh_m

New User


Joined: 15 Apr 2008
Posts: 39
Location: India

PostPosted: Mon Jul 07, 2008 10:55 am
Reply with quote

Thank you very much pedro it is working fine. Your help is really appreciatable.
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top