Clarification required for ISFCALLS

IBM's Command List programming language & Restructured Extended Executor

Clarification required for ISFCALLS

Postby Viswanathchandru » Fri Apr 20, 2012 7:22 pm

Dear all,

I have a small snipet where in i need to capture the log with respect to the ISFDATE parameter. I'm not able to use this special variable. Everytime i run this script without this variable i'm able to get the expected result. When i give ISFDATE = XXXXXXXX i'm not able to get it. Here is the snipet I use a very small one. I tried get it from the Manual but i was not able to get the correct one. I dont think i was giving the wrong syntax. Still i'm getting RC 8.
Code: Select all
/*rexx*/                                                     
rc_isf = ISFCALLS("ON")                                     
isfdate = 04132012                                           
isflinelim = 100                                             
Address tso                                                 
 "Alloc da ('xxxxxx.log(login1)') f(isfin) shr reu"         
 "Alloc da ('xxxxxx.log(logout1)') f(isfout) shr reu"       
Address sdsf "Isflog read type(Syslog)"                     
   say rc                                                   
    Do ix=1 TO isfmsg2.0                                     
         say isfmsg2.ix                                     
    end                                                     
    Do ix=1 to isfline.0                                     
    "Execio * diskw isfout (stem isfline.finis"             
    end                                                     
c=isfcalls("off")                                           
Please correct me where do i go wrong. This is the error that i get.
Code: Select all
8                                                                             
ISF741E Error processing command 'SET DATE 04202012' associated with variable I
SFDATE, reason: PARM INVALID.                                                 
. Please let me know if i need to give more information on this. Apologize if i or my thoughts are wrong.


Regards,
Viswa
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm

Re: Clarification required for ISFCALLS

Postby BillyBoyo » Fri Apr 20, 2012 8:00 pm

"SET DATE" seems to expect information for the format of an output date, ie MMDDYYYY or DDMMYYYY, not an actual date.

So, what are you trying to achieve?
BillyBoyo
Global moderator
 
Posts: 3095
Joined: Tue Jan 25, 2011 12:02 am

Re: Clarification required for ISFCALLS

Postby Viswanathchandru » Fri Apr 20, 2012 8:12 pm

Thanks Billy boyo for addressing the post. My expectation is to cut the syslog or capture the syslog for a particular date which can be given through the ISFDATE if i'm not wrong. Advice me how can i give the required date parameter if i need to do in that way. Apologize if i or my thoughts or wrong.

Regards,
Viswa
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm

Re: Clarification required for ISFCALLS

Postby BillyBoyo » Fri Apr 20, 2012 8:19 pm

From SDSF commands reference:

Code: Select all
SET DATE    |Set date format    |No    |No    |ISFDATE


No, I don't think you can do it by setting the date format.
BillyBoyo
Global moderator
 
Posts: 3095
Joined: Tue Jan 25, 2011 12:02 am

Re: Clarification required for ISFCALLS

Postby Viswanathchandru » Fri Apr 20, 2012 8:24 pm

Hello Billy thanks for addressing the post. If in case i'm not able to address the ISFDATE then what is the real usage of ISFDATE special variable. If i'm not wrong from the SDSF REXX manual its said the ISFDATE captures the log for the mentioned date. Other way of achieving this could be working on the 24 hrs log. But my target is making this script working for the date that i pass through the script or through the panel. Please advice. Apologize if i or my thoughts are wrong!

Regards,
Viswa
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm

Re: Clarification required for ISFCALLS

Postby BillyBoyo » Fri Apr 20, 2012 9:16 pm

BillyBoyo
Global moderator
 
Posts: 3095
Joined: Tue Jan 25, 2011 12:02 am

Re: Clarification required for ISFCALLS

Postby Viswanathchandru » Fri Apr 20, 2012 10:22 pm

Hi Billy thanks for addressing the post. More comfortable. Running with z/OS 1.13.
New special variable: Sets the date format for special variables.
. Doesnot it means that we can set the boundary limit with the ISFDATE special variable? please advice. Apologies if i or my thoughts are wrong!


Regards,
Viswa
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm

Re: Clarification required for ISFCALLS

Postby Viswanathchandru » Fri Apr 20, 2012 10:25 pm

I took it wrong i guess! Probably ISFLOGSTARTDATE would help.

Regards,
Viswa
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm

Re: Clarification required for ISFCALLS

Postby BillyBoyo » Fri Apr 20, 2012 11:40 pm

I think that'd be the one.

The ISFDATE/SET DATE is just telling SDSF what format to show dates in for reporting/display. DDMMYYYY or MMDDYYYY.

Good luck.
BillyBoyo
Global moderator
 
Posts: 3095
Joined: Tue Jan 25, 2011 12:02 am

Re: Clarification required for ISFCALLS

Postby Viswanathchandru » Sat Apr 21, 2012 12:00 am

Really too confused. http://publib.boulder.ibm.com/infocenter/zos/v1r12/index.jsp?topic=%2Fcom.ibm.zos.r12.isfa500%2Flogsv.htm. This link says ISFLOGSTARTDATE will process the data according to the input. Also specifies if not specified it takes the current date as the start date. But when i try this i'm getting the output of the current date. Really strange! Not sure whether i'm doing this in a correct way. Here is the modified one followed by the execution messages and the part of the output messages. Can any one help me out in understanding the right way. Apologize if I or my thoughts are wrong!

Updated Snipet:
Code: Select all
/* REXX */                     
RC_ISF = ISFCALLS("ON")         
ISFLINELIM = 100               
ISFLOGSTARTDATE = 2012.089     
ISFLOGSTOPDATE = 2012.089       
Others remain the same as my previous code.

Execution message:
Code: Select all
0                                                                     
ISF757I Variable ISFLINELIM being processed with value '100'.         
ISF757I Variable ISFLOGSTARTDATE being processed with value '2012.089'
ISF757I Variable ISFLOGSTOPDATE being processed with value '2012.089'. 
ISF767I Request completed.                                             
***                                                                     


Output message:

Code: Select all
  12111 00:01:01.56          00000290
  12111 00:01:01.63          00000290
Shows todays julian date.



Regards,
Viswa
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm

Next

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post