View previous topic :: View next topic
|
Author |
Message |
vinodh k r
New User
Joined: 03 Jul 2014 Posts: 5 Location: india
|
|
|
|
Hi,
We need to transfer a VB file(obtained from mainframe in BINARY mode) present in windows which has RDW in its first 4 bytes. As we give QUOTE SITE RDW, RECFM VB and do FTP, by default the VB file is generated with lrecl 256 and the records are jumbled.
Can anyone suggest what needs to be done to get rid of this?
Regards,
Vinodh |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Over ride the default with a value that you want ?
Are you really using FTP or the $INDFILE utility to transfer the data.
Either way it will be possible to change the output dataset attributes. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
vinodh k r wrote: |
Hi,
We need to transfer a VB file(obtained from mainframe in BINARY mode) present in windows which has RDW in its first 4 bytes. As we give QUOTE SITE RDW, RECFM VB and do FTP, by default the VB file is generated with lrecl 256 and the records are jumbled.
Can anyone suggest what needs to be done to get rid of this?
Regards,
Vinodh |
Don't forget the BINARY attribute!!! |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Your FIRST problem was letting somebody transfer a VB file in binary to a non-mainframe platform. Variable blocked mainframe data does not really work on any other platform in binary.
A few years ago I had to transfer a binary VB CICS journal file from mainframe to mainframe via FTP. This took a couple of weeks of work to get the parameters correct for the transfer -- which should give you an idea as to how difficult such transfers are, even going from z/OS to z/OS. The FTP commands we used on the sending machine were:
Code: |
userid
password
TYPE E
site pri=50 sec=20 cyl
locsite rdw
MODE BLOCK
put 'data set name'
quit
exit |
You may be able to tweak these commands to get them to transfer the data, but if I were you I would not hold high hopes for any transfer of VB binary data from the PC to the mainframe ever working. |
|
Back to top |
|
|
|