‎2007 Apr 23 8:20 AM
Hi,
Pls see this code
IF g_error = 'X'.
WRITE: / "File formatted incorrectly.".
ELSEIF tot_betrg NE g_tot_betrg OR g_tot_rec NE l_tot_rec .
WRITE: / 'summary record count does not match.'.
SKIP.
ENDIF.
This is giving me syntax error "Field elseif if unknown. It is neither in one of the specified tables nor defined by a 'data' statement.
Please help
Thanks
Pranati
‎2007 Apr 23 8:27 AM
Hi,
maybe try this with single quotes
IF g_error = 'X'.
WRITE: / 'File formatted incorrectly.'.
....
Kostas
‎2007 Apr 23 8:22 AM
Hi Pranati,
Modify your code in this way.
IF g_error = 'X'.
WRITE: / "File formatted incorrectly.".
ELSEIF.
tot_betrg NE g_tot_betrg OR g_tot_rec NE l_tot_rec .
WRITE: / 'summary record count does not match.'.
SKIP.
ENDIF.
Hope this resolves your query.
<b>Reward all the helpful answers.</b>
Regards
‎2007 Apr 23 8:24 AM
Hi,
Thanks for your help.. but it is not working
Thanks
pranati
‎2007 Apr 23 8:24 AM
hi,
try like this
IF ( g_error = 'X' ).
WRITE: / "File formatted incorrectly.".
ELSEIF ( tot_betrg NE g_tot_betrg OR g_tot_rec NE l_tot_rec ) .
WRITE: / 'summary record count does not match.'.
ENDIF.
reward points if this helps u
ravi
‎2007 Apr 23 8:26 AM
‎2007 Apr 23 8:24 AM
hi,
give period after elseif like
<b>ELSEIF.
tot_betrg NE g_tot_betrg OR g_tot_rec NE l_tot_rec .</b>
If helpful award points
‎2007 Apr 23 8:27 AM
Hi,
maybe try this with single quotes
IF g_error = 'X'.
WRITE: / 'File formatted incorrectly.'.
....
Kostas
‎2007 Apr 23 8:34 AM
‎2007 Apr 23 8:28 AM
Hi Paranati ,
Plese use the command
<b>WRITE: / 'File formatted incorrectly.'.</b>
Replace <b>"</b> with <b>'</b> .
Regards
Arun
‎2007 Apr 23 8:28 AM
Paste this: ( rather than " " use ' ' ).
IF 1 = 2.
WRITE: / 'File formatted incorrectly.'.
ELSEIF tot_betrg NE g_tot_betrg OR g_tot_rec NE l_tot_rec .
WRITE: / 'summary record count does NOT match.'.
SKIP.
ENDIF.
‎2007 Apr 23 8:33 AM
Pranati,
Remove double quotes.
WRITE: / 'File formatted incorrectly'.
Don't forget to reward if useful.