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
 

 

X All command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: X All command
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: 7908
Location: Bellevue, IA

PostPosted: Thu Jan 06, 2011 6:31 pm    Post subject:
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    Post subject: Re: X All command
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    Post subject:
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    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Fri Jan 07, 2011 8:21 pm    Post subject: Reply to: X All command
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    Post subject:
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

Senior Member


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

PostPosted: Sat Jan 08, 2011 10:42 am    Post subject: Reply to: X All command
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    Post subject:
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    Post subject:
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    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