Operating System - OpenVMS
1753317 Members
5085 Online
108792 Solutions
New Discussion юеВ

Urgent !! Creating RMS file with FTP(from dos to VMS) or change it in VMS side with DCL to set...

 
Ataikili
Frequent Advisor

Urgent !! Creating RMS file with FTP(from dos to VMS) or change it in VMS side with DCL to set...

Hi this is a very urgent problem for me, thanks all for help...

In Open VMS V7.3-2 there is a RMS file name is MURAT.

Pls see the result of original VMS RMS file's(MURAT) DUMP/BYTE, DUMP/BLOCK results attached here.

I want to create a file with FTP from windows(dos) to VMS system in ascii (or binary mode)

OR if cant create the same file with ftp on VMS side i may need the help to transfer a optimum file and convert it to final format with DCL.

DIRE/FULL

Directory FASTRX$DEV:[EXTERNAL]

MURAT.;1 File ID: (2413,135,0)
Size: 40/69 Owner: [FASTWIRE]
Created: 18-AUG-2008 11:29:18.77
Revised: 18-AUG-2008 11:29:18.80 (1)
Expires:
Backup:
Effective:
Recording:
Accessed:
Attributes:
Modified:
Linkcount: 1
File organization: Sequential
Shelved state: Online
Caching attribute: Writethrough
File attributes: Allocation: 69, Extend: 0, Global buffer count: 0, No version limit
Record format: Variable length, maximum 621 bytes, longest 264 bytes
Record attributes: Carriage return carriage control
RMS attributes: None
Journaling enabled: None
File protection: System:RWED, Owner:RWED, Group:RE, World:
Access Cntrl List: None
Client attributes: None

Total of 1 file, 40/69 blocks.

8 REPLIES 8
Ataikili
Frequent Advisor

Re: Urgent !! Creating RMS file with FTP(from dos to VMS) or change it in VMS side with DCL to set...

DUMP/RECORD MURAT
Wim Van den Wyngaert
Honored Contributor

Re: Urgent !! Creating RMS file with FTP(from dos to VMS) or change it in VMS side with DCL to set...

Ijust did a ascii transfer in DOS FTP under XP to VMS (7.3).

The result is directly ok, t.i. a variable length VMS file (like your file).

So, what is the problem ?

Wim
Wim
Ataikili
Frequent Advisor

Re: Urgent !! Creating RMS file with FTP(from dos to VMS) or change it in VMS side with DCL to set...

Notice that data in file has CRLF chars.
The file is as
HEADER
PAYMENT MESSAGE-1 DETAILS
PAYMENT MESSAGE-2 DETAILS
PAYMENT MESSAGE-3 DETAILS
TRAILER

and PAYMENT MESSAGE DETAILS composed of CR LF and FF

In PC side i created the header , pym message details and trailer in the file.
After i ftp it to VMS i want to see only 5 line on ,(with EDIT) 1 header 3 message and 1 trailer


When i ftp in ascii mode there is many many records due to CRLF's in payment message details.
When i ftp in binary mode there is only one record in file(due to fix lenght 512 it seems may more line )
Phil.Howell
Honored Contributor

Re: Urgent !! Creating RMS file with FTP(from dos to VMS) or change it in VMS side with DCL to set...

if you're in a hurry, why don't you zip the file, ftp it as binary, then unzip on vms.
Get the latest
http://www.openvms.compaq.com/openvms/freeware/freeware.html

Phil
Phil.Howell
Honored Contributor

Re: Urgent !! Creating RMS file with FTP(from dos to VMS) or change it in VMS side with DCL to set...

or why use ftp at all?
you could try wget from vms
Ataikili
Frequent Advisor

Re: Urgent !! Creating RMS file with FTP(from dos to VMS) or change it in VMS side with DCL to set...

i send zip.exe and unzip.exe to vms

$sh default
FASTRX$DEV:[EXTERNAL]

so what must i wrote instead of beolows ?

$ UNZIP :== $disk:[dir]UNZIP.EXE
$ UNZIP application.ZIP


Ataikili
Frequent Advisor

Re: Urgent !! Creating RMS file with FTP(from dos to VMS) or change it in VMS side with DCL to set...

FTP is impossible for it. I need a DCl script for it. And create another submission
Phil.Howell
Honored Contributor

Re: Urgent !! Creating RMS file with FTP(from dos to VMS) or change it in VMS side with DCL to set...

$ UNZIP :== $FASTRX$DEV:[EXTRANAL]UNZIP.EXE
$ UNZIP application.ZIP

this will extract the contents of application.zip to your current default dir

unzip -h also works