All Forums Database
Jaguar 25 posts Joined 05/06
24 May 2006
if statment in bteq?

1.Is there any way i can use a if statment in bteq.If so can anyone provide me with the syntax2.Also is it possible to pass parameters to bteq ?3. Is it possible to use variables, assig nvalues to variables?

j355ga 100 posts Joined 12/05
24 May 2006

Q: Is there any way i can use a if statment in bteq.If so can anyone provide me with the syntaxA: Limited to test condition: ERRORCODE, ACTIVITYCOUNT and ERRORLEVELTests conditions you can use= (equal to)> (greater than)< (less than)>= (greater than or equal to)<= (less than or equal to)<> (not equal)!= (not equal)~= (not equal)^= (not equal)eg:.IF ERRORCODE > 0 THEN .GOTO FAILED.QUIT 0;.LABEL FAILEDABORT 'FAILURE';Q: Also is it possible to pass parameters to bteq ?A: No - but you can use macros and stored procedures here. Q: Is it possible to use variables, assig nvalues to variables?A: No - but stored procedures will allow variables

Jeff

You must sign in to leave a comment.