Convert Files to STREAM-LF

Files that reside on an SMB filesystem (Advanced Server or Samba) must be in STREAM_LF RMS record format. If they are not in STREAM_LF record format, the NetBeans editor will corrupt the files. Distributed NetBeans automatically checks the record format of each file from an SMB share that you attempt to open in the editor.  If the format is not STREAM_LF, the following dialog box is shown.

    

If you click OK, the file is converted to STREAM_LF. (Converting files to a record format of STREAM_LF does not alter the contents of the file in any way.) If you click Cancel, the file is not opened in the NetBeans editor.

  If you want to convert your files manually...

The Java SDK contains an FDL file that you can use to convert text files of different formats to STREAM_LF record format. This FDL file is located in the [.COM] directory of the Java distribution. You need to perform this conversion only once per file. The following shows the location of the FDL file in the Java SDK v 1.4.2 distribution:

Directory SYS$COMMON:[JAVA$142.COM]

STREAM_LF.FDL;1  1  26-SEP-2000 16:05:06:22  RWED,RWED,RE,RE)

Use the following command to convert a file (MYFILE.C in this example) to STREAM_LF record format:

$ CONVERT/FDL=SYS$COMMON:[JAVA$142.COM]STREAM_LF.FDL  MYFILE.C  MYFILE.C

 To make sure that files fetched from your CMS library are in STREAM_LF record format...

First check the file out of your CMS library using the RESERVE command, change the record format to STREAM_LF, and then check the file back into the CMS library using the REPLACE command.  This ensures that subsequent fetches result in a file with the proper record format.