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
 

 

How to execute a line command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: How to execute a line command
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

Senior Member


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

PostPosted: Wed Jul 02, 2008 9:41 pm    Post subject: Reply to: How to execute a line command from rexx
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: 2360
Location: Israel

PostPosted: Thu Jul 03, 2008 12:27 am    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Jul 03, 2008 1:07 am    Post subject: Reply to: How to execute a line command
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

Senior Member


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

PostPosted: Thu Jul 03, 2008 1:26 am    Post subject: Reply to: How to execute a line command
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 03, 2008 12:30 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 03, 2008 1:23 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Fri Jul 04, 2008 4:55 am    Post subject: Reply to: How to execute a line command
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Jul 04, 2008 12:16 pm    Post subject: Reply to: How to execute a line command
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    Post subject:
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

Senior Member


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

PostPosted: Fri Jul 04, 2008 10:10 pm    Post subject: Reply to: How to execute a line command
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    Post subject:
Reply with quote

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

Senior Member


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

PostPosted: Mon Jul 07, 2008 10:17 am    Post subject: Reply to: How to execute a line command
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    Post subject:
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    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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm
No new posts I am unable to use SWAPBAR ON command... mrsidhu12 TSO/ISPF 3 Thu Sep 01, 2016 1:10 pm


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