*   *ID* C00E111  DBCMD    changed on 1992-09-28-13.23.05 by ADMIN     *
*
*  movec crash bei langem select auf targon mit 2.4.04
*
file cleark !
file connect ( kern test !
create table pe (
   pn       char(16) ascii key,
   gebname  char(100) ascii,
   gebdat   char(10) ascii,
   geschl   char(1) ascii,
   gebort   char(100) ascii,
   famname  char(100) ascii,
   vorname  char(100) ascii,
   titel    char(100) ascii,
   wohn     char(100) ascii,
   stras    char(100) ascii,
   land     char(100) ascii,
   staat    char(9) ascii,
   mutname  char(100) ascii,
   bem      char(200) ascii,
   bzr      char(1) ascii,
   vorl     char(1) ascii) !
commit !
create table vf (
   az       char(17) ascii key,
   vfart1   char(1) ascii,
   vfart2   char(1) ascii,
   frdaz    char(100) ascii,
   einlbeh  char(1) ascii,
   einldat  char(8) ascii,
   eingdat  char(8) ascii,
   delgr1   char(1) ascii,
   delgr2   char(1) ascii,
   delgr3   char(3) ascii,
   dezanw   char(1) ascii,
   dezkz1   char(3) ascii,
   dezkz2   char(1) ascii,
   tatvorwf char(100) ascii,
   tatort   char(100) ascii,
   tatzeit  char(17) ascii,
   asserv   char(1) ascii,
   assnum   char(8) ascii,
   anzb     char(4) ascii,
   bez      char(100) ascii,
   zknum    char(5) ascii,
   eintdat  char(8) ascii,
   einlbeh2 char(1) ascii,
   einldat2 char(8) ascii,
   wglanf   char(5) ascii,
   wgldauer char(2) ascii,
   pomap    char(1) ascii,
   bem      char(140) ascii,
   alttermin char(8) ascii,
   schaden  char(10) ascii,
   anze     char(1) ascii,
   vstatus  char(1) ascii,
   rstatus  char(1) ascii
   ) !
commit !
create table tf (
   az         char(17) ascii key,
   pn         char(16) ascii key,
   lfdnr      char(  2) ascii,
   tatvorw    char(100) ascii,
   erlart     char(  2) ascii,
   freitxt    char( 70) ascii,
   spruchk    char(  1) ascii,
   empf       char(  3) ascii,
   betrag     char(  9) ascii,
   auflerf    char(  1) ascii,
   vfgdat     char(  8) ascii,
   bescheid   char(  1) ascii,
   uebern     char(  1) ascii,
   beschw     char(  1) ascii,
   bescherl   char(  1) ascii,
   bem        char(140) ascii,
   entschantr char(  1) ascii,
   stordat    char(  8) ascii,
   amger      char( 22) ascii,
   amaz       char( 17) ascii,
   ament1     char(  1) ascii,
   ament2     char( 17) ascii,
   ament3     char(  2) ascii,
   amdat      char(  8) ascii,
   amrm       char(  1) ascii,
   lnger      char( 22) ascii,
   lnaz       char( 17) ascii,
   lnent1     char(  1) ascii,
   lnent2     char( 17) ascii,
   lnent3     char(  2) ascii,
   lndat      char(  8) ascii,
   lnrm       char(  1) ascii,
   revaz      char( 17) ascii,
   revent1    char(  1) ascii,
   revent2    char( 23) ascii,
   rkdat      char(  8) ascii,
   vrsaz      char( 17) ascii,
   pstatus    char(  1) ascii
) !
commit !
*
insert pe set pn = '1', famname = 'Eins' !
insert pe set pn = '2', famname = 'Zwei' !
insert vf set az = '5 Js 7/90', tatvorwf = 'ladendiebstahl' !
insert tf set az = '5 Js 7/90', pn = '1', lfdnr = '1' !
insert tf set az = '5 Js 7/90', pn = '2', lfdnr = '2' !
*
parsing!
select * from tf, vf, pe
 where tf.az = vf.az
   and tf.pn = pe.pn
   and tf.lfdnr = :a
   and vf.az = :b
   for reuse !
IF &rc = 0 THEN BEGIN
* Fuer Unicode sind die Ausgabespalten des letzten und des naechsten
* Staements zu lang. Mit Pars/Execute-Trennung laesst sich der
* Kontrollfluss fuer die naechsten Statements deshalb nicht zur Deckung
* bringen ausser mit dieser harten Massnahme... (CK)
executing!
data!
select!
1
c 2  '2'
c 17 '5 Js 7/90'

nodata!
END
pars_execute!
drop parseid !
1
parsing!
select e1(
p0=tf.az, p1=pe.pn, p2=lfdnr, p3=tatvorw, p4=erlart,
p5=freitxt, p6=spruchk, p7=empf, p8=betrag, p9=auflerf,
p10=vfgdat, p11=bescheid, p12=uebern, p13=beschw, p14=bescherl,
p15=pe.bem, p16=entschantr, p17=stordat, p18=amger, p19=amaz,
p20=ament1, p21=ament2, p22=ament3, p23=amdat, p24=amrm,
p25=lnger, p26=lnaz, p27=lnent1, p28=lnent2, p29=lnent3,
p30=lndat, p31=lnrm, p32=revaz, p33=revent1, p34=revent2,
p35=rkdat, p36=vrsaz, p37=pstatus, p38=vf.az, p39=vfart1,
p40=vfart2, p41=frdaz, p42=einlbeh, p43=einldat, p44=eingdat,
p45=delgr1, p46=delgr2, p47=delgr3, p48=dezanw, p49=dezkz1,
p50=dezkz2, p51=tatvorwf, p52=tatort, p53=tatzeit, p54=asserv,
p55=assnum, p56=anzb, p57=bez, p58=zknum, p59=eintdat,
p60=einlbeh2, p61=einldat2, p62=wglanf, p63=wgldauer, p64=pomap,
p65=tf.bem, p66=alttermin, p67=schaden, p68=anze, p69=vstatus,
p70=rstatus, p71=tf.pn, p72=gebname, p73=gebdat, p74=geschl,
p75=gebort, p76=famname, p77=vorname, p78=titel, p79=wohn,
p80=stras, p81=land, p82=staat, p83=mutname, p84=vf.bem,
p85=bzr, p86=vorl)
from tf, vf, pe
 where tf.az = vf.az
   and tf.pn = pe.pn
   and tf.lfdnr = :a
   and vf.az = :b
   for reuse !
IF &rc = 0 THEN BEGIN
executing!
data!
select!
1
c 2  '2'
c 17 '5 Js 7/90'

nodata!
END
pars_execute!
drop parseid !
1
* - - -
* parsing!
select e1(
p0=tf.az, p1=pe.pn, p2=lfdnr, p3=tatvorw, p4=erlart,
p5=freitxt, p6=spruchk, p7=empf, p8=betrag, p9=auflerf,
p10=vfgdat, p11=bescheid, p12=uebern, p13=beschw, p14=bescherl,
p15=pe.bem, p16=entschantr, p17=stordat, p18=amger, p19=amaz,
p20=ament1, p21=ament2, p22=ament3, p23=amdat, p24=amrm,
p25=lnger, p26=lnaz, p27=lnent1, p28=lnent2, p29=lnent3,
p30=lndat, p31=lnrm, p32=revaz, p33=revent1, p34=revent2,
p35=rkdat, p36=vrsaz, p37=pstatus, p38=vf.az, p39=vfart1,
p40=vfart2, p41=frdaz, p42=einlbeh, p43=einldat, p44=eingdat,
p45=delgr1, p46=delgr2, p47=delgr3, p48=dezanw, p49=dezkz1,
p50=dezkz2, p51=tatvorwf, p52=tatort, p53=tatzeit, p54=asserv,
p55=assnum, p56=anzb, p57=bez, p58=zknum, p59=eintdat,
p60=einlbeh2, p61=einldat2, p62=wglanf, p63=wgldauer, p64=pomap,
p65=tf.bem, p66=alttermin, p67=schaden, p68=anze, p69=vstatus,
p70=rstatus, p71=tf.pn, p72=gebname, p73=gebdat, p74=geschl,
p75=gebort, p76=famname, p77=vorname, p78=titel, p79=wohn,
p80=stras, p81=land, p82=staat, p83=mutname, p84=vf.bem,
p85=bzr, p86=vorl)
from tf, vf, pe
 where tf.az = vf.az
   and tf.pn = pe.pn
   and tf.lfdnr = '2'
   and vf.az = '5 Js 7/90'
   for reuse !
* executing!
* data!
* select!
* c 2  '2'
* c 17 '5 Js 7/90'
*
* 1
* nodata!
* pars_execute!
commit   release!
