 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Spanish Printing in AS/400</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/spanish-printing/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/spanish-printing/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 05:16:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/spanish-printing/#comment-95990</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 31 Aug 2011 01:37:09 +0000</pubDate>
		<guid isPermaLink="false">#comment-95990</guid>
		<description><![CDATA[It&#039;s hard to determine exactly what you want to do. Here&#039;s a very trivial ILE CL program that prints a report. The heading and first detail line is in English. The last detail line is in Spanish. This was tested on a US English system:&lt;pre&gt;
/* +
   CRTCLMOD MODULE( mylib/PRTSPANISH )           +
            SRCFILE( mylib/QCLSRC )              +
            SRCMBR( PRTSPANISH )                 +
            LOG( *NO )                           +
                                                 +
   CRTPGM PGM( mylib/PRTSPANISH )                +
          BNDDIR( QC2LE )                        +
          ACTGRP( *NEW )                         +
*/
pgm  ( +
     )

   dcl   &amp;msgdta      *char  128

   dcl   &amp;NL          *char    1     value( x&#039;15&#039; )
   dcl   &amp;x00         *char    1     value( x&#039;00&#039; )

   dcl   &amp;rc          *int


/* Set a trivial page heading... */
   chgvar           &amp;msgdta       ( +
                                    &#039;A generated Spanish SPLF:&#039; *cat  +
                                    &amp;NL          *cat  +
                                    &amp;NL          *cat  +
                                    &amp;x00               +
                                  )

/* Assign our printed output to QPRINT... */
   ovrdbf      STDOUT  +
                 tofile( QPRINT )  +
                 share( *YES )

/* Print our trivial heading... */
   callprc        &#039;printf&#039;            ( +
                                        &amp;msgdta        +
                                      ) +
                                rtnval( &amp;rc )


   chgvar           &amp;msgdta       ( +
                                    &#039;Name   Address&#039; *cat +
                                    &amp;NL          *cat  +
                                    &amp;x00               +
                                  )
   callprc        &#039;printf&#039;            ( +
                                        &amp;msgdta        +
                                      ) +
                                rtnval( &amp;rc )

   chgvar           &amp;msgdta       ( +
                                    &#039;Nombre Dirección&#039; *cat +
                                    &amp;NL          *cat  +
                                    &amp;x00               +
                                  )
   callprc        &#039;printf&#039;            ( +
                                        &amp;msgdta        +
                                      ) +
                                rtnval( &amp;rc )

/* Clear away our override... */
   dltovr      STDOUT

/* ...and get out of here... */
   return

endpgm&lt;/pre&gt;
But somehow that doesn&#039;t seem to be what you&#039;re trying to do.

Can you explain in a little more detail?

Tom]]></description>
		<content:encoded><![CDATA[<p>It&#8217;s hard to determine exactly what you want to do. Here&#8217;s a very trivial ILE CL program that prints a report. The heading and first detail line is in English. The last detail line is in Spanish. This was tested on a US English system:
<pre>
/* +
   CRTCLMOD MODULE( mylib/PRTSPANISH )           +
            SRCFILE( mylib/QCLSRC )              +
            SRCMBR( PRTSPANISH )                 +
            LOG( *NO )                           +
                                                 +
   CRTPGM PGM( mylib/PRTSPANISH )                +
          BNDDIR( QC2LE )                        +
          ACTGRP( *NEW )                         +
*/
pgm  ( +
     )

   dcl   &amp;msgdta      *char  128

   dcl   &amp;NL          *char    1     value( x'15' )
   dcl   &amp;x00         *char    1     value( x'00' )

   dcl   &amp;rc          *int


/* Set a trivial page heading... */
   chgvar           &amp;msgdta       ( +
                                    'A generated Spanish SPLF:' *cat  +
                                    &amp;NL          *cat  +
                                    &amp;NL          *cat  +
                                    &amp;x00               +
                                  )

/* Assign our printed output to QPRINT... */
   ovrdbf      STDOUT  +
                 tofile( QPRINT )  +
                 share( *YES )

/* Print our trivial heading... */
   callprc        'printf'            ( +
                                        &amp;msgdta        +
                                      ) +
                                rtnval( &amp;rc )


   chgvar           &amp;msgdta       ( +
                                    'Name   Address' *cat +
                                    &amp;NL          *cat  +
                                    &amp;x00               +
                                  )
   callprc        'printf'            ( +
                                        &amp;msgdta        +
                                      ) +
                                rtnval( &amp;rc )

   chgvar           &amp;msgdta       ( +
                                    'Nombre Dirección' *cat +
                                    &amp;NL          *cat  +
                                    &amp;x00               +
                                  )
   callprc        'printf'            ( +
                                        &amp;msgdta        +
                                      ) +
                                rtnval( &amp;rc )

/* Clear away our override... */
   dltovr      STDOUT

/* ...and get out of here... */
   return

endpgm</pre>
<p>But somehow that doesn&#8217;t seem to be what you&#8217;re trying to do.</p>
<p>Can you explain in a little more detail?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/8 queries in 0.046 seconds using memcached
Object Caching 269/270 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 07:56:17 -->