<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>[forwarded]</p>
<p><br>
</p>
<div id="Signature">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">Hi,</span><br>
</div>
</span></font></div>
</div>
<div style="color: rgb(0, 0, 0);">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p><br>
</p>
<p>if you are prepared to apply the modifications in a terminal window, you could use a 'proc' parameter with the CISIS-executable 'mx'.</p>
<p>For both the WinISIS and the JISIS data you would first have to export them to an ISO-format, the resulting records can be exported in their turn to ISO again and then imported in either WinISIS or JISIS.</p>
<p><br>
</p>
<p>So, starting from an ISO2709 export of your data, in a terminal window you have to issue the following commands, with the mx-executable (available in the cgi-bin folder of ABCD or from other sources) available in the work-folder where you have the ISO-export
named 'before.iso' : </p>
<p>mx iso=before iso create=before now -all</p>
<p>mx before proc=@replacesf.proc create=after now -all</p>
<p>mx after iso=after.iso now -all</p>
<p><br>
</p>
<p>Then the file 'after.iso' is the result and these records can be imported into your database.</p>
<p><br>
</p>
<p>The actual trick is in the process (proc) which is executed by mx and listed here : </p>
<p></p>
<div>======</div>
<div>'d10',</div>
<div> s1:=(s(v10)),</div>
<div> e1:=size(s1),</div>
<div> e2:=1,</div>
<div> s2:=(''),</div>
<div>/* sequence of subfields : vdpk */</div>
<div> while e2<=e1</div>
<div> (</div>
<div> if mid(s1,e2,1) : s(';') then</div>
<div> if s2 : '^p' then s2:=(s2,'^k') else</div>
<div> if s2 : '^d' then s2:=(s2,'^p') else</div>
<div> if s(s2) : '^v' then s2:=(s2,'^d') else</div>
<div> s2:=(s2,'^v'),</div>
<div> fi,</div>
<div> fi,</div>
<div> fi,</div>
<div> else s2:=(s2,mid(s1,e2,1)),</div>
<div> fi,</div>
<div> e2:=e2+1,</div>
<div> )</div>
<div> '<10>',s2,'</10>',</div>
<div>=====</div>
<div><br>
</div>
<div>Copy/paste this code into a file 'replacesf.proc' and put it in the same work-folder. </div>
If you feel it being too complicated, send me the ISO-export of your data and I can do it (in fact in a few seconds time...).
<p></p>
<p><br>
</p>
<div id="Signature">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="PlainText">Egbert de Smet<br>
Universiteit Antwerpen</div>
</span></font></div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Amjad Ali Malik <amjadalimalik66@hotmail.com><br>
<b>Sent:</b> Tuesday, October 26, 2021 5:27 PM<br>
<b>To:</b> Egbert De Smet<br>
<b>Subject:</b> Re: Splitting a Field</font>
<div> </div>
</div>
<div>
<p></p>
<div style="background-color:#FFEB9C; width:100%; border-style:solid; border-color:#9C6500; border-width:1pt; padding:2pt; font-size:10pt; line-height:12pt; font-family:'Calibri'; color:Black; text-align:left">
<span style="color:#9C6500; font-weight:bold">CAUTION:</span> This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.</div>
<br>
<p></p>
<div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Dear Egbert,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
The sequence of subfields is fixed, The ';' is need to be replaced with any subfield character(s) in an algorithm sequentially 1st, 2nd , 3rd..... & I am using Winisis & JISIS<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Regards </div>
<div id="appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Egbert De Smet <egbert.desmet@uantwerpen.be><br>
<b>Sent:</b> Tuesday, October 26, 2021 6:44 PM<br>
<b>To:</b> Amjad Ali Malik <amjadalimalik66@hotmail.com>; isis-users@iccisis.org <isis-users@iccisis.org><br>
<b>Subject:</b> Re: Splitting a Field</font>
<div> </div>
</div>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi,</p>
<p><br>
</p>
<p>the problem I see is how to do this if the sequence of subfields is not fixed : how do we know which ';' to replace by which subfield 'vdpk' ?</p>
<p>I can imagine it is possible if the sequence is fixed, but if it is not no way to do it. In principle in ISIS the sequence of subfields is not by definition fixed, e.g. ^b can come before ^a etc. </p>
<p>In ABCD there is in the FDT a column 'pre-literals' which is meant to match a separator in some input string to subfields. But again the sequence will need to be fixed.</p>
<p> </p>
<div id="x_Signature">
<div class="x_BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="x_PlainText">Egbert de Smet<br>
Universiteit Antwerpen</div>
</span></font></div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> isis-users <isis-users-bounces+egbert.desmet=ua.ac.be@iccisis.org> on behalf of Amjad Ali Malik <amjadalimalik66@hotmail.com><br>
<b>Sent:</b> Tuesday, October 26, 2021 3:25 PM<br>
<b>To:</b> isis-users@iccisis.org<br>
<b>Subject:</b> [Isis-users] Splitting a Field</font>
<div> </div>
</div>
<div>
<p></p>
<div style="background-color:#FFEB9C; width:100%; border-style:solid; border-color:#9C6500; border-width:1pt; padding:2pt; font-size:10pt; line-height:12pt; font-family:'Calibri'; color:Black; text-align:left">
<span style="color:#9C6500; font-weight:bold">CAUTION:</span> This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.</div>
<br>
<p></p>
<div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Dear Experts,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
<div>I want to split a field into subfields having data stored as</div>
<div><br>
</div>
<div> Source --><span style="font-size:12pt"> </span><span style="font-size:12pt"><b>v10 = ^m256;12;103;;^i10242020</b></span></div>
<div><br>
</div>
<div><span style="background-color:rgb(255,255,255); display:inline!important">Target --></span><span style="background-color:rgb(255,255,255); display:inline!important; font-size:12pt">
</span><span style="background-color:rgb(255,255,255); display:inline!important; font-size:12pt"><b>v10 = ^m256^v12^d103^p^k^i10242020</b></span><br>
</div>
<div><br>
</div>
<div>How it will be accomplished.</div>
<div><br>
</div>
<div>Regards</div>
Amjad Ali Malik<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>