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

X All command


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

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Thu Jan 06, 2011 6:17 pm
Reply with quote

Can we give more than 1 condition in the X ALL command . For e.g. X ALL 'hello' 8 80 and 'display' 50 60. Wherever hello appears in column 8 to 80 and display in colm 50 to 60 should get excluded . Can this be done in VIEW mode with X ALL command ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Jan 06, 2011 6:31 pm
Reply with quote

Why not just do 4 commands?
Code:
x all
f 'hello' 8 80 all
f 'display' 50 60 all
flip
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Jan 06, 2011 6:35 pm
Reply with quote

Removed by poster.
Back to top
View user's profile Send private message
Ambili S

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Fri Jan 07, 2011 1:37 pm
Reply with quote

Hi Robert

I tried using the 4 commands , but it doesn't seem to give the desired result.

If hello appears between 8 to 80 and there's no display from 50 to 60 , then i want it in my output. With the above commands this record is geting excluded .
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Fri Jan 07, 2011 2:22 pm
Reply with quote

Then omit the flip command. icon_idea.gif
Back to top
View user's profile Send private message
Ambili S

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Fri Jan 07, 2011 2:44 pm
Reply with quote

What i want to know is , can we give more than one condition in an X ALL command. Going by the above criteria , if hello appears in 8 to 80 and there's no display in 50 to 60 , then that record should be present , similarly vice-versa.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Fri Jan 07, 2011 8:21 pm
Reply with quote

I think you need to write an editor macro that examines each of your lines and determines whether to include or exclude.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Jan 07, 2011 9:57 pm
Reply with quote

reset
x all 'hello' 8 80
f all 'display' 50 60
flip
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Sat Jan 08, 2011 10:42 am
Reply with quote

Code:

1.  hello
2.             display
3.  hello    display

He wants 1 and 2, but not 3.
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Sat Jan 08, 2011 8:11 pm
Reply with quote

Try
Code:
X ALL
F C'DISPLAY' 50 60 ALL
C C'HELLO' '!@#$%' 8 80 ALL NX
X ALL
F '!@#$%' 8 80 ALL
C '!@#$%' C'HELLO' ALL NX
FLIP

Note: code the text strings (inside the quotes) EXACTLY as they will appear in the data being edited (i.e. all UPPERCASE (as shown), all lowercase, or exact CaMeL-CaSe; if the strings are not consistent throughout the data (upper/lower/camel-case), then the code above cannot be made to work properly).
Back to top
View user's profile Send private message
Ambili S

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Mon Jan 10, 2011 10:33 am
Reply with quote

Thanks Ronald..It did work icon_smile.gif
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 Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top