<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Java file in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546850#M43323</link>
    <description>And to mention a discussion recently here:&lt;BR /&gt;the method of removing the version from a file-specification :&lt;BR /&gt;$ filenv = file - f$parse(file,,,"VERSION")&lt;BR /&gt;is not ODS5 save!&lt;BR /&gt;</description>
    <pubDate>Wed, 09 Dec 2009 10:18:45 GMT</pubDate>
    <dc:creator>Joseph Huber_1</dc:creator>
    <dc:date>2009-12-09T10:18:45Z</dc:date>
    <item>
      <title>Java file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546846#M43319</link>
      <description>Hi all&lt;BR /&gt;i have a client java application on windows machine that create a file and put it on a openvms directory by ftp.&lt;BR /&gt;My problem is that the file has a record format like  Variable length, maximum 0 bytes, longest 32 bytes but i want a stream type.How i can do this?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Dec 2009 09:47:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546846#M43319</guid>
      <dc:creator>riccardo.pedrinelli</dc:creator>
      <dc:date>2009-12-09T09:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Java file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546847#M43320</link>
      <description>Riccardo,&lt;BR /&gt;&lt;BR /&gt;welcome to the OpenVMS itrc forum!&lt;BR /&gt;&lt;BR /&gt;From the release notes for Java:&lt;BR /&gt;&lt;BR /&gt;Converting Binary Files&lt;BR /&gt;Binary .class files need to be Stream_LF as well. If they are not Stream_LF you will get error messages like the following, even though your CLASSPATH is correct and the correct .class file is on the path: &lt;BR /&gt;&lt;BR /&gt;Can't find class Test.HelloWorld&lt;BR /&gt;If you import .class files from a non-OpenVMS system, be sure to convert them to Stream_LF. &lt;BR /&gt;&lt;BR /&gt;To get a binary file (.class, .jar, .zip) into Stream_LF record format, do the following to give the file the right record format attributes: &lt;BR /&gt;&lt;BR /&gt;$ SET FILE/ATTR=(RFM:STMLF,RAT:CR) filespec&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Wed, 09 Dec 2009 10:09:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546847#M43320</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2009-12-09T10:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Java file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546848#M43321</link>
      <description>Convert the file after transfer on VMS:&lt;BR /&gt;A command procedure like the following will do it (beware of line wraps):&lt;BR /&gt;&lt;BR /&gt;$ wspec = "*.TXT;0"&lt;BR /&gt;$ if p1.nes."" then wspec=p1&lt;BR /&gt;$ last=""&lt;BR /&gt;$ loop:&lt;BR /&gt;$  file=f$search(wspec)&lt;BR /&gt;$  if file.eqs."" then EXIT&lt;BR /&gt;$  filenv = file - f$parse(file,,,"VERSION")&lt;BR /&gt;$  if filenv.eqs.last then EXIT&lt;BR /&gt;$  last=filenv&lt;BR /&gt;$ if f$file(file,"RFM").eqs."VAR"&lt;BR /&gt;$ then&lt;BR /&gt;$  write sys$output "Convert VAR ",file," to STMLF:",filenv&lt;BR /&gt;$  if f$trnlnm("SYS$INPUT",,,"USER").eqs."SYS$COMMAND" then deassign/user SYS$INPUT&lt;BR /&gt;$ convert/fdl=SYS$INPUT: 'file' 'filenv'&lt;BR /&gt;FILE&lt;BR /&gt; ORGANIZATION            sequential&lt;BR /&gt;&lt;BR /&gt;RECORD&lt;BR /&gt; BLOCK_SPAN              yes&lt;BR /&gt; CARRIAGE_CONTROL        carriage_return&lt;BR /&gt; FORMAT                  stream_lf&lt;BR /&gt;$ if $STATUS then delete 'file'/log&lt;BR /&gt;$ endif&lt;BR /&gt;$ goto loop&lt;BR /&gt;$ exit '$STATUS'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Spacify parameter p1 as the file name (default is all *.txt files).&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Dec 2009 10:10:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546848#M43321</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-12-09T10:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Java file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546849#M43322</link>
      <description>My above CONVERT assumes the files are "text" files, and transferred in FTP ASCII mode.&lt;BR /&gt;&lt;BR /&gt;As Duncan writes, "binary" files like class files just need to have the right RFM attributes set, and this works ONLY if transferred in binary FTP mode !</description>
      <pubDate>Wed, 09 Dec 2009 10:14:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546849#M43322</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-12-09T10:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Java file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546850#M43323</link>
      <description>And to mention a discussion recently here:&lt;BR /&gt;the method of removing the version from a file-specification :&lt;BR /&gt;$ filenv = file - f$parse(file,,,"VERSION")&lt;BR /&gt;is not ODS5 save!&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Dec 2009 10:18:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546850#M43323</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-12-09T10:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Java file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546851#M43324</link>
      <description>Joseph,&lt;BR /&gt;&lt;BR /&gt;thanks for clarifying that. &lt;BR /&gt;&lt;BR /&gt;I am so used to the effects of binary transfer, that I overlooked the likelihood of a text file...not had my first cup of coffee yet!</description>
      <pubDate>Wed, 09 Dec 2009 10:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546851#M43324</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2009-12-09T10:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Java file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546852#M43325</link>
      <description>Thanks to all for the response!&lt;BR /&gt;I forgot to mention that i want to make the record type stream by java code if is possible.</description>
      <pubDate>Wed, 09 Dec 2009 10:25:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546852#M43325</guid>
      <dc:creator>riccardo.pedrinelli</dc:creator>
      <dc:date>2009-12-09T10:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Java file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546853#M43326</link>
      <description>I can't imagine to do it by pure java code:&lt;BR /&gt;since java can't read VAR files, it would need some native VMS (JNI) code: open-read-write using RMS calls, and manipulating FAB/RAB structures.</description>
      <pubDate>Wed, 09 Dec 2009 10:41:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546853#M43326</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-12-09T10:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Java file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546854#M43327</link>
      <description>Java, that is the CRTL, usually creates and writes Stream_LF files. However, if you "overwrite" an existing file, which has variable record size, the CRTL will keep the record format.</description>
      <pubDate>Wed, 09 Dec 2009 15:23:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546854#M43327</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2009-12-09T15:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Java file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546855#M43328</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] and put it on a openvms directory by&lt;BR /&gt;&amp;gt; ftp.  [...]&lt;BR /&gt;&lt;BR /&gt;As usual, it might help to know more about&lt;BR /&gt;the VMS (IP, FTP) environment:&lt;BR /&gt;&lt;BR /&gt;      TCPIP SHOW VERSION&lt;BR /&gt;&lt;BR /&gt;(or whatever works for your IP software).&lt;BR /&gt;&lt;BR /&gt;&amp;gt; My problem is that the file has a record&lt;BR /&gt;&amp;gt; format like Variable length, maximum 0&lt;BR /&gt;&amp;gt; bytes, longest 32 bytes but i want a stream&lt;BR /&gt;&amp;gt; type.&lt;BR /&gt;&lt;BR /&gt;The answer may depend on how much control you&lt;BR /&gt;have over the VMS system.  For example, this&lt;BR /&gt;might be helpful:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/83final/6526/6526pro_041.html#ftp_logicals_sec" target="_blank"&gt;http://h71000.www7.hp.com/doc/83final/6526/6526pro_041.html#ftp_logicals_sec&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;      [...]&lt;BR /&gt;      TCPIP$FTP_STREAMLF&lt;BR /&gt;&lt;BR /&gt;      If defined, the FTP server and client&lt;BR /&gt;      create files as RMS STREAM_LF files.&lt;BR /&gt;      The default is variable-length files.&lt;BR /&gt;      [...]&lt;BR /&gt;&lt;BR /&gt;I recently did this on my system, and I&lt;BR /&gt;haven't noticed any problems because of it.</description>
      <pubDate>Wed, 09 Dec 2009 15:51:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546855#M43328</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-12-09T15:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Java file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546856#M43329</link>
      <description>&lt;BR /&gt;I have a hard time parsing the problem description.&lt;BR /&gt;&lt;BR /&gt;Is the file being created on the OpenVMS side, with the VAR attributes?&lt;BR /&gt;- that would be a C-RTL feature setting, such as Hartmut hints at.&lt;BR /&gt;&lt;BR /&gt;Or is it created on the windows side, FTPed to OpenVMS and found to be VAR?&lt;BR /&gt;- That woudl be an FTP issue as Steven hints at.&lt;BR /&gt;&lt;BR /&gt;For the C-RTL, try again after renaming (or deleting) all prior versions away.&lt;BR /&gt;&lt;BR /&gt;See the C-RTL documenation or HELP such as:&lt;BR /&gt;&lt;BR /&gt;$ help crtl Feature_Logical_Names DECC$V62_RECORD_GENERATION&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Dec 2009 16:10:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546856#M43329</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-12-09T16:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Java file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546857#M43330</link>
      <description>From the original question it is clear:&lt;BR /&gt;the file is produced on Windows.&lt;BR /&gt;the file is transferred to VMS by FTP. &lt;BR /&gt;&lt;BR /&gt;So it depends on the TCPIP and FTP software, what has to be done to produce a STMLF file on the VMS side.&lt;BR /&gt;If it is HP TCPIP then Steven showed the solution, other tcpip stacks or FTP servers may need post-processing.</description>
      <pubDate>Thu, 10 Dec 2009 09:21:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-file/m-p/4546857#M43330</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-12-10T09:21:28Z</dc:date>
    </item>
  </channel>
</rss>

