[Isis-users] Erro se proc - proc error

Nicolas Rucks nrucks at yahoo.com
Wed Mar 22 20:42:16 CET 2017


Olá Edwin,
lo probé y me funcionó poniendo cada cadena del replace() dentro de un s().
'<8>',
replace(
	s(v008),
	s('aaaa'),
	s( if p(v260^c) 
		then v260^c.4 
		else '0000' ,
	fi
	)
)
,
'</8>'

O en una sola linea:
'<8>', replace(  s(v008),  s('aaaa'),  s( if p(v260^c)    then v260^c.4    else '0000' ,  fi  ) ) , '</8>'

Espero te funcione.
Saludos desde Buenos Aires.
Nicolas Rucks

--------------------------------------------
En date de : Mer 22.3.17, Edwin Hübner <edwin.hubner at gmail.com> a écrit :

 Objet: [Isis-users] Erro se proc - proc error
 À: "isis-users" <isis-users at iccisis.org>
 Date: Mercredi 22 mars 2017, 13h49
 
 (In
 English below
 Prezados
 Eu gostaria de substituir a string 'aaaa' do campo 8
 pela data do campo 260^c. Tentei fazer isto através da
 seguinte proc:
 '<8>',replace(v008,'aaaa',if
 p(v260^c) then v260^c.4 else
 '0000',fi),'</8>'
 mas apresenta o seguinte erro:
 fatal: ce(v008,'aaaa',if p(v260^c) then v260^c.4
 else '0000',fi)),'</8>
 
 O que está errado na proc? Alguma outra idéia?
 Obrigado,
 -------------------------------
 Dear
 I would like to replace the string 'aaaa'  of
 field 8 with the  date oj field 260^c. I tried
 to do this through the following proc
 '<8>',replace(v008,'aaaa',if p(v260^c)
 then v260^c.4 else '0000',fi),'</8>'
 but it presents the following error:
 fatal: ce(v008,'aaaa',if p(v260^c) then v260^c.4
 else '0000',fi)),'</8>
 
 What is wrong with proc? Any other
 idea?
 Thank you,
 
 Edwin Hübner
 (5521)99647-1675
 
 
 -----La pièce jointe associée suit-----
 
 _______________________________________________
 isis-users mailing list
 isis-users at iccisis.org
 To manage your own subscription options go to: http://lists.iccisis.org/listinfo/isis-users
 Or contact Henk Rutten: hlrutten at xs4all.nl
 


More information about the isis-users mailing list