View previous topic :: View next topic
|
Author |
Message |
dchristensen
New User
Joined: 26 Jul 2006 Posts: 30 Location: Des Moines, Iowa
|
|
|
|
We are trying to develop a process for moving long-term archived files from the mainframe to the LAN for storage. The problem arises where we might need to copy a file back to the mainframe for data recovery.
I've attempted to use the Micro Focus Mainframe Access (MFA) Drag N Drop tool to move files, but am having issues copying files back to the mainframe. Also this tool is limited in that it can only work with DASD-based data.
I CAN use FTP to access tape-based datasets. An interesting point is that once the variable-blocked files have been downloaded, I can use them inside Mainframe Express projects without any apparent problems.
When I try to FTP the files back to the mainframe, then compare the newly copied file against the original (using a DASD-based copy) using SuperCE I'm seeing differences that appear to be in the record descriptor word for each record.
I do use syntax QUOTE SITE to pass the file attributes to the mainframe before doing the PUT operation from the PC.
Please note that I can move fixed block records up, down, etc., without any sort of issue.
I'm hoping that someone will have experience doing what I'm trying to do.
Thanks in advance for your consideration!
Dave |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Are you transferring the variable blocked data in binary or text mode? Is your FTP configured to preserve trailing blanks? And do you have trailing blanks in your variable length blocks?
Fixed data transfers are never an issue -- they're easy (pretty much). Since the mainframe and PC use radically different methods to handle variable length data, however, that's where you can run into major issues.
The fastest, easiest solution might be to use TRSMAIN to terse the data (which creates fixed length data no matter the input) and transfer the tersed data file. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
What options that specifically relate to VB datasets do you have specified in your process? |
|
Back to top |
|
|
dchristensen
New User
Joined: 26 Jul 2006 Posts: 30 Location: Des Moines, Iowa
|
|
|
|
I'm using BINARY to transfer the data.
The attributes I use when I enter the QUOTE SITE are:
RECFM=VB
LRECL=15830
BLKSIZE=27998
TR
PRI=35000
SEC=2000
Dave |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You need QUOTE SITE RDW on both FTP transfers, I beileve. I've never really used QUOTE SITE RDW much so I'm not sure of the details (possibly you'll need QUOTE LOCSITE RDW on the transfer to the PC?) but I do know just doing a binary transfer will strip off the RDW fields. |
|
Back to top |
|
|
dchristensen
New User
Joined: 26 Jul 2006 Posts: 30 Location: Des Moines, Iowa
|
|
|
|
Thanks!
I'll give that a try and let you know how it worked out. |
|
Back to top |
|
|
dchristensen
New User
Joined: 26 Jul 2006 Posts: 30 Location: Des Moines, Iowa
|
|
|
|
I've now completed the download and upload back to the mainframe. I think I still have an issue with SuperCE telling me that the files have differences. A simple comparison of attributes is showing the number of tracks being different between files.
Original file: 35,022 tracks
Latest uploaded file: 40.403 tracks |
|
Back to top |
|
|
dchristensen
New User
Joined: 26 Jul 2006 Posts: 30 Location: Des Moines, Iowa
|
|
|
|
I'm going to try to upload a document that will show screen clips of screens where I'm browsing the files on the mainframe. |
|
Back to top |
|
|
dchristensen
New User
Joined: 26 Jul 2006 Posts: 30 Location: Des Moines, Iowa
|
|
|
|
Okay. I'm at a loss. How do I attach a document? |
|
Back to top |
|
|
dchristensen
New User
Joined: 26 Jul 2006 Posts: 30 Location: Des Moines, Iowa
|
|
|
|
Okay. I tried both ways for the upload. First with the RDW parm and second without. I can report that I lost record integrity both times. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
I tried it and lost the RDW as well. However, the RDW is preserved when I added to my FTP JCL:
Code: |
//SYSFTPD DD *
RDW TRUE
/* |
but I haven't figured out how to bring the file back yet -- the new file has another RDW in front of the old RDW and the new one is exactly 4 more than the old RDW ('0088'x became '008C'x, '0150'x became '0154'x).
Experimentation continues. |
|
Back to top |
|
|
dchristensen
New User
Joined: 26 Jul 2006 Posts: 30 Location: Des Moines, Iowa
|
|
|
|
Thanks for the info, Robert.
I'll be continuing my efforts today. Thus far, I have been only working with the command line FTP client on my XP-based PC. I will keep you posted.
Thanks again!
Dave |
|
Back to top |
|
|
|