How to fetch data from PS file



IBM's Command List programming language & Restructured Extended Executor

Re: How to fetch data from PS file

Postby Akatsukami » Sat Jan 14, 2012 2:11 am

ravisankarc wrote:Could you please tell me how to use flags..

Consult your friendly local vexillologist :P
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: How to fetch data from PS file

Postby Pedro » Sat Jan 14, 2012 2:51 am

By flags, I just meant some kind of indicator that you can later check for true or false.

Try something like this (untested):
here.    = 0    /* default not here */       
here.JOE = 1    /* found him        */           
                                       
If (¬here.JOE)  Then Say 'Joe not here'
If (¬here.BILL) Then Say 'BILL not here
Pedro Vera
User avatar
Pedro
 
Posts: 684
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Previous

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post