View previous topic :: View next topic |
Author |
Message |
nadh Intermediate
Joined: 08 Oct 2004 Posts: 192 Topics: 89
|
Posted: Mon Oct 18, 2004 8:54 am Post subject: Evaluate syntax |
|
|
Hi
could any one give me the exact code for the following. very urgent.
thanks in advance.
Code: |
TEST-SQLCODE SECTION.
IF SQLCODE IN SQLCA NOT = ZERO AND 100
IF SQLCODE IN SQLCA < ZERO
MOVE '3' TO CAPPEL IN PARM-FORMATTAGE
ELSE
MOVE '2' TO CAPPEL IN PARM-FORMATTAGE
END-IF
CALL 'PG0TX43A' USING SQLCA
PARM-FORMATTAGE
END-IF.
|
|
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Tue Oct 19, 2004 11:02 am Post subject: |
|
|
Nadh,
Try this
Code: |
EVALUATE TRUE
WHEN SQLCODE < ZERO
MOVE '3' TO CAPPEL OF PARM-FORMATTAGE
CALL 'PG0TX43A' USING SQLCA,
PARM-FORMATTAGE
WHEN SQLCODE > ZERO AND NOT = 100
MOVE '2' TO CAPPEL OF PARM-FORMATTAGE
CALL 'PG0TX43A' USING SQLCA,
PARM-FORMATTAGE
END-EVALUATE
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
nadh Intermediate
Joined: 08 Oct 2004 Posts: 192 Topics: 89
|
Posted: Tue Oct 19, 2004 11:54 pm Post subject: |
|
|
thank you kolusu
regards
nadh |
|
Back to top |
|
|
|
|