[Info-vax] difference in files being copied by scp from Unix to VMS

Sumir sumirmehta at gmail.com
Wed Apr 29 11:47:56 EDT 2009


On Apr 29, 9:21 am, koeh... at eisner.nospam.encompasserve.org (Bob
Koehler) wrote:
> In article <b6bce20e-0467-4a7a-a1d5-483e1600d... at p6g2000pre.googlegroups.com>, Sumir <sumirme... at gmail.com> writes:
>
>
>
> > the program i am looking to write is similar to the one specificed by
> > you. (comparing file). so as mentioned that comparison of files
> > considering the bytes prior to the pad would be sufficient too. Could
> > you please share a snippet as to how this is to be achieved ( i am not
> > very familiar with vms commands ), or is there a command just to
> > compare two files upto certain bytes or something like that ?
>
>    You have to write some code, I don't know of any built-in utility
>    to do this.
>
>    The code needs to do an RMS $OPEN, set the value of the last byte
>    used in the last block (I'm not sure which RMS data structure that
>    is in off th etop of my head), and close the file ($CLOSE).
>
>    All the required information is in the RMS manuals.



Hi,

I used the following

CURESOPER> EOF_BYTE = F$FILE(FILE1,"FFB")
CURESOPER> set file/attribute=(FFB:'EOF_BYTE) FILE2

I am using the position of the EOF byte of the first file and setting
the same for the 2nd file. This seems to resolve the issue...
Thoughts on the approach  ?



More information about the Info-vax mailing list