<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.rws.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>xychange command does not report missing input trans tables</title><link>https://community.rws.com/product-groups/contenta-portfolio/contenta_publishing_suite/f/xpp_forum/30215/xychange-command-does-not-report-missing-input-trans-tables</link><description>Hello. While running xychange, I ran into something that puzzles me. It may be a bug in the code but I wanted to run it by the group before opening up a ticket, just in case I’m missing something obvious. When I run xychange using command “ /opt/xyvision</description><dc:language>en-US</dc:language><generator>Telligent Community 12 Non-Production</generator><item><title>RE: xychange command does not report missing input trans tables</title><link>https://community.rws.com/thread/98774?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2020 15:33:13 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:1bd83bcb-da0a-4f67-9aa4-9c4362d14bf2</guid><dc:creator>Jay Baldwin</dc:creator><description>&lt;p&gt;[raises hand as someone who also didn't read updated documentation; writes Perl code instead]&lt;/p&gt;
&lt;p&gt;EXAMPLE:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;($xytt, $xyout) = ( &amp;quot;$libname3/_tt_img2b.x&amp;quot; , &amp;quot;$inf.I2b&amp;quot; );&lt;br /&gt;$xyin = &amp;amp;jpXychange (\@rmlist, $xytt, $xyin, $xyout);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;################################################################&lt;br /&gt;# sub to run job processing xychange and return outfile name as next infile name&lt;br /&gt;# (jb 06-mar-2012)&lt;br /&gt;################################################################&lt;br /&gt;sub jpXychange {&lt;br /&gt; &amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;my ($dlist, $xytt, $xyin, $xyout) = @_;&lt;br /&gt;&lt;span style="background-color:yellow;"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;-e $xytt or die &amp;quot;ERROR: TTFILE $xytt not found: $!&amp;quot;;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;-e $xyin or die &amp;quot;ERROR: INFILE $xyin not found: $!&amp;quot;;&lt;br /&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;`exec xychange -l $xytt $xyin $xyout` ;&lt;br /&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;push @$dlist, $xyout;&lt;br /&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;return&lt;/strong&gt; ($xyout);&lt;br /&gt;}&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: xychange command does not report missing input trans tables</title><link>https://community.rws.com/thread/98737?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 20:08:37 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:73e6f44f-975f-421a-bcbf-3ef2e6941d09</guid><dc:creator>Sharon Appleton</dc:creator><description>&lt;p&gt;Remember to upvote your idea! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: xychange command does not report missing input trans tables</title><link>https://community.rws.com/thread/98735?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 19:47:21 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:9a4b650c-cfed-4c7d-be21-10f4d8a85c86</guid><dc:creator>Clifton Parsons</dc:creator><description>&lt;p&gt;Ah, okay, that makes sense,&amp;nbsp; Thank you for the reply, Bart.&amp;nbsp; By the way, I submitted the suggestion for rewording the default message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: xychange command does not report missing input trans tables</title><link>https://community.rws.com/thread/98734?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 19:33:46 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:e05d13b5-6a70-4238-87d7-08ddb9aa84e9</guid><dc:creator>Bart Terryn</dc:creator><description>&lt;p&gt;And a quick scan of the import.pl shows:&lt;br /&gt;&lt;br /&gt; # Handle quoted arguments that (may) contain spaces&lt;br /&gt; @rargs = &amp;quot;-e -proc -cd $divpath $xychange $input $output&amp;quot; =~ /(["'].+?["']|\S+)/g;&lt;br /&gt;&lt;br /&gt;So xychange is run with the -e switch when using the import.pl tool...&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: xychange command does not report missing input trans tables</title><link>https://community.rws.com/thread/98731?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 19:09:20 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:c8f31756-19e8-4a34-b65b-fee9e3972199</guid><dc:creator>Clifton Parsons</dc:creator><description>&lt;p&gt;The 2 certs I mentioned is about all there will be to inherit but I promise you&amp;#39;ll get your fair share.&lt;br /&gt;&lt;br /&gt;I will submit the suggestion to the SDL ideas site.&lt;br /&gt;&lt;br /&gt;Now - something just occurred to me.&amp;nbsp; As I wrote in my original message, a manual import fails under this scenario.&lt;br /&gt;&lt;br /&gt;Does this mean that the xychange command uses the default behavior of looking in Lsyslib as a last resort but that import.pl does not use this default behavior?&lt;br /&gt;&lt;br /&gt;Just wondering...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: xychange command does not report missing input trans tables</title><link>https://community.rws.com/thread/98729?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 19:05:49 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:0b992553-1380-4ff9-9565-dca669e01735</guid><dc:creator>Bart Terryn</dc:creator><description>&lt;p&gt;Clifton,&lt;/p&gt;
&lt;p&gt;Many thanks for including me in your will.&lt;br /&gt;But I do want to stipulate that I do not recognize any debts that you might want to pass on to me :-)&lt;br /&gt;&lt;br /&gt;Changing the message is an excellent idea.&lt;br /&gt;So why don&amp;#39;t you put in onto the SDL ideas site.&lt;br /&gt;(&lt;a href="/ideas/contenta-ideas/i/ideas-xpp"&gt;https://community.sdl.com/ideas/contenta-ideas/i/ideas-xpp&lt;/a&gt;)&lt;br /&gt;I would support that idea...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: xychange command does not report missing input trans tables</title><link>https://community.rws.com/thread/98727?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 18:45:50 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:b92e8f11-970a-4040-8f6d-3c864fedf32e</guid><dc:creator>Clifton Parsons</dc:creator><description>&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;Thank you all for the replies.&amp;nbsp; I tried the -e switch and it will do just fine.&amp;nbsp; I guess it always comes down to me not reading the documentation - apologies for that.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;Having said that, if I had to quibble I&amp;#39;d say that I have no problem with the default BEHAVIOR but the default MESSAGE is misleading.&amp;nbsp; It makes it sound like the process found my tables and used them.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;A better default settings message when not using the -e switch might be something along the lines of &amp;quot;Input table &amp;#39;aaa&amp;#39; in Lbbb not found - using input table &amp;#39;sys&amp;#39; in Lsyslib instead&amp;quot;.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;Just my two cents worth - I&amp;#39;m not requesting any kind of change.&amp;nbsp; For now I am glad to use the hyphen -e switch and will be sure to include Bart in my will.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;Cheers.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: xychange command does not report missing input trans tables</title><link>https://community.rws.com/thread/98725?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 18:26:11 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:4583fbd9-876e-4708-a561-0003fe22fe62</guid><dc:creator>Bart Terryn</dc:creator><description>&lt;p&gt;Although you might find it strange behaviour, Xychange translation tables are looked up in exactly the same way as any other style file. If it can not find a file it ends up by using the &amp;#39;sys&amp;#39; version that is sitting in the Lsyslib folder.&lt;br /&gt;(just like Steve just explained)&lt;br /&gt;&lt;br /&gt;So the behaviour you see is (and has always been) intended. Whether it makes sense that is a different question.&lt;/p&gt;
&lt;p&gt;That is why I asked a couple of years ago to change the default behaviour. But as engineering hates to change existing behaviour (and that is a good thing but at the same time very annoying), I got the -e option in return.&lt;/p&gt;
&lt;p&gt;I always make sure that the &amp;#39;-e&amp;#39; option is set in the interface and then set the profile to remember my last settings. Like that you will always run xychange manually with the -e option set and get an error when the translation table can not be found. (I always set the -kp option as well, a wonderful thing when debugging things)&lt;br /&gt;&lt;br /&gt;Tip for your programmers: if you create a script that transforms things always make sure to add the -e option when running a xychange step. Like that xychange will fail when it can not find the table it needs!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: xychange command does not report missing input trans tables</title><link>https://community.rws.com/thread/98724?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 18:14:51 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:af4d1cae-51d4-43dd-83ac-a3179f901fe8</guid><dc:creator>Steve Piercey</dc:creator><description>&lt;p&gt;Since the beginning of Xy (somewhere back in 1982), xychange has always defaulted to &amp;quot;tt sys&amp;quot; if it cannot find the specified translation table. As you have noticed, it contains a translate of &amp;quot;a&amp;quot; to &amp;quot;a&amp;quot; which basically does nothing. I don&amp;#39;t know for sure why it does this, but if I had to guess its because we did not want auto-processing to stop for any reason. An error would abort and the goal is to always have some Division produced even though it might not be correct.&lt;/p&gt;
&lt;p&gt;If you look at &amp;quot;xyhelp xychange&amp;quot;, you will see that there is a &amp;quot;-e&amp;quot; option which means exact match the translation table and not default to &amp;quot;sys&amp;quot;. So if you can have it anyway you want.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: xychange command does not report missing input trans tables</title><link>https://community.rws.com/thread/98723?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 17:54:12 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:4c20da02-3545-40c9-848d-73dbc53bb0ea</guid><dc:creator>Clifton Parsons</dc:creator><description>&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;Hi, Barry.&amp;nbsp; If I add -X, I get this:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;Pass 1, Transformation table: crentity&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /opt/xyvision/sd_liz/Lsyslib/_tt_sys.x, Size=577&lt;br /&gt;Transformed ... bytes&lt;br /&gt;...&lt;br /&gt;Pass 2, Transformation table: TestXych&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /opt/xyvision/sd_liz/Lsyslib/_tt_sys.x, Size=577&lt;br /&gt;Transformed ... bytes&lt;br /&gt;...&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; Successful completion of XyChange &amp;lt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;It almost looks like the process is going to Lsyslib to grab the default &amp;quot;sys&amp;quot; trans tables and swapping them in for the tables in the JT.&amp;nbsp; I do have an output file for my command and it has no byte size changes from the input file so that would support the idea that the &amp;quot;sys&amp;quot; table is being called since all it does is replace &amp;quot;a&amp;quot; with &amp;quot;a&amp;quot;.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;I also tried adding -debug to my command line call but I saw no new information.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;Am I the only one with this behavior?&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: xychange command does not report missing input trans tables</title><link>https://community.rws.com/thread/98722?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 17:24:33 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:2f2032a2-0fc3-4ae4-894b-28dfefb75ca4</guid><dc:creator>Barry   Stankiewicz</dc:creator><description>&lt;p&gt;Try running xychange with the -X switch for added verbose message and see if that provided more detailed messages when trying to run against an incorrect library or translation table. There is also a -debug switch available to you when running from command.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For more info on xychange, run xyhelp xychange, or check the Command Line Utilities doc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>