| :-) :-) NO don't panic
These files are in variable length 510 bytes; a format which
kermit likes. But X/Y/ZModem need CR, Stream-LF format to be
'happy' VMS-arc and VMS-zoo also need CR STR-lf.
There is a conversation-program available, it's name is CVTARC.EXE
give me some minutes and i upload a small procedure which makes
the use of CVTARC.EXE very easy.
so long
Ralf
====
|
|
$!
$ SET TER/WI=80
$!
$ WRITE SYS$OUTPUT "CONVERSION-PROCEDURE for Kermit OR XModem"
$ Write sys$output ""
$ WRITE SYS$OUTPUT "< V > = Variable lenght 510 Bytes for Kermit"
$ WRITE SYS$OUTPUT "< U > = CR, STREAM-LF for XModem and VMS-Arc"
$ Write sys$output ""
$ Write sys$output ""
$!
$ inquire/nopunct answer "Which Format? (V,U)"
$ if answer .eqs. "V" then goto CVTF
$ if answer .eqs. "U" then goto CVTS
$ EXIT
$!
$!
$!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
$!
$!
$ CVTF:
$!=====
$!
$ ! Command procedure to convert all files in the current directory to
$ ! VARIABLE LENGTH 510 BYTE format if they are not already so.
$!
$ cvt :== $dua1:[zimmermann._amiga._vmstools]cvtarc
$ say :== write sys$output
$
$ say "Converting all files in ''f$directory()' to VARIABLE 510 BYTE format"
$ say ""
$ loop:
$ file = f$search("*.*") ! Will get each file in succession
$ if file .eqs. "" then goto done ! and return NULL after last file
$ RFM = f$file_attributes(file,"RFM") ! get Record Format
$ RAT = f$file_attributes(file,"RAT") ! and record attributes
$ say "File: ''file' :"
$ say " RAT = ''RAT', RFM = ''RFM'"
$ ! If already in correct format, don't bother
$ if ((RAT .eqs. "") .and. (RFM .eqs. "VAR")) then goto loop
$ ! Don't touch text files!
$ if ((RAT .eqs. "CR") .and. (RFM .eqs. "VAR")) then goto loop
$
$ say " - Converting to VARIABLE, 510 BYTE..."
$ file = f$element(0,";",file) ! Strip off version
$ cvt v 'file
$ say " - ... done"
$ goto loop
$
$ done:
$
$! say "Purging directory..."
$! purge/LOG
$ say "Conversion Complete"
$ exit
$
$!
$!
$ CVTS:
$!=====
$!
$ ! Command procedure to convert all files in the current directory to
$ ! CR, STREAM_LF format if they are not already so.
$!
$ cvt :== $dua1:[zimmermann._amiga._vmstools]cvtarc
$ say :== write sys$output
$
$ say "Converting all files in ''f$directory()' to CR, STMLF format"
$ say ""
$ loop:
$ file = f$search("*.*") ! Will get each file in succession
$ if file .eqs. "" then goto done ! and return NULL after last file
$ RFM = f$file_attributes(file,"RFM") ! get Record Format
$ RAT = f$file_attributes(file,"RAT") ! and record attributes
$ say "File: ''file' :"
$ say " RAT = ''RAT', RFM = ''RFM'"
$ ! If already in correct format, don't bother
$ if ((RAT .eqs. "CR") .and. (RFM .eqs. "STMLF")) then goto loop
$ ! Don't touch text files!
$ if ((RAT .eqs. "CR") .and. (RFM .eqs. "VAR")) then goto loop
$
$ say " - Converting to CR, STMLF..."
$ file = f$element(0,";",file) ! Strip off version
$ cvt u 'file
$ say " - ... done"
$ goto loop
$
$ done:
$
$! say "Purging directory..."
$! purge/LOG
$ say "Conversion Complete"
$ exit
|