Cobol - HELP

 
Vista:

HELP

Publicado por Yini (1 intervención) el 25/04/2006 04:00:35
Tengo algo echo, pero estoy segura que esta super mal, por favor me puede ayudar alguien.

1. Code an nested IF statement that causes control to be passed to B-200-FIX-IT if the numeric field, AC-ERROR-COUNT, is less than 100; control to be passed to B-210-FORGET-IT if AC-ERROR-COUNT is greater than 120; and control to be passed to B-220-PATCH-IT otherwise.

2. Code a COMPUTE statement that adds the value of IR-COST to IR-YTD-COST and then divides the result by AC-TOTAL-MONTHS. The final answer should be rounded and placed in the field DL-AVERAGE-COST.

Gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:HELP

Publicado por SuperIndio (161 intervenciones) el 26/04/2006 19:53:01
Porque no pones o me pasas ? parte de la rutina asi lo podemos ver bien ?
la definicion en Working y lo que definiste en la procedure ?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:HELP

Publicado por josé (15 intervenciones) el 01/05/2006 10:37:04
El primero según yo es:

IF AC-ERROR-COUNT < 100
GO TO B-200-FIX-IT
ELSE
IF AC-ERROR-COUNT > 120
GO TO B-210-FORGET-IT
ELSE
GO TO B-220-PATCH-IT.

Para el segundo:

COMPUTE DL-AVERAGE-COST ROUNDED =

(IR-COST + IR-YTD-COST) / AC-TOTAL-MONTHS.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar