Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to use TCP/IP FTP to transfer VSAM file between MVS
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Fri Jan 06, 2012 8:17 am    Post subject: How to use TCP/IP FTP to transfer VSAM file between MVS
Reply with quote

Hello

I have a task that backup over 200 data sets (PS,PDS and VSAM) from one mainframe to another mainframe ,
There's only a TCP/IP FTP ID which could be used.

I refer to Communications Server Quick Reference and use GET to transfer PS and MGET to transfer PDS successfully ,
but could not find a way to transfer VSAM file , If I don't change VSAM to PS , can TCP/IP FTP can transfer VSAM directly ?
If there's a way can anyone tell me which document I should refer ?
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jan 06, 2012 9:05 am    Post subject:
Reply with quote

Hello,

Suggest you repro the vsam data into qsam files, ftp them to the target system, define the same vsam files on the target, and runthe repro to load the data into the target system vsam files.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Jan 06, 2012 10:26 am    Post subject: Reply to: How to use TCP/IP FTP to transfer VSAM file betwee
Reply with quote

What about TSO XMIT and RECEIVE?

Mr. Bill
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Jan 06, 2012 10:49 am    Post subject:
Reply with quote

TRANSMIT does not support data sets with the following types of values:

•keys
•ISAM data sets
•VSAM data sets
•data sets with user labels
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Fri Jan 06, 2012 11:19 am    Post subject: Re: Reply to: How to use TCP/IP FTP to transfer VSAM file be
Reply with quote

Bill O'Boyle wrote:
What about TSO XMIT and RECEIVE?

Mr. Bill


Thanks for your reply Bill , PeterHolland is right ?
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Fri Jan 06, 2012 2:21 pm    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

Suggest you repro the vsam data into qsam files, ftp them to the target system, define the same vsam files on the target, and runthe repro to load the data into the target system vsam files.


Thanks for your suggestion dick.

Because the VSAM file is too old and no specification with the catalog information , I have to use LISTCAT to get the catalog information like RECORDSIZE for over 80 VSAM files , a lot of work to do , so I wonder if I could use NETVIEW FTP , NETVIEW FTP support transferring VSAM files ?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Fri Jan 06, 2012 2:43 pm    Post subject: Reply to: How to use TCP/IP FTP to transfer VSAM file betwee
Reply with quote

why not take one or more DFDSS dump(s), send it/them over using FTP and then on the other side do a restore.

anyway the description of the requirement and environment is quite incomplete.
what about the dataset sizes? they might be a show stopper for any reasonable <network> transfer

NETVIEW FTP is a different thing from FTP
the acronym is the same, but the protocol is completely different
and it does not come for free
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Fri Jan 06, 2012 3:04 pm    Post subject: Re: Reply to: How to use TCP/IP FTP to transfer VSAM file be
Reply with quote

enrico-sorichetti wrote:
why not take one or more DFDSS dump(s), send it/them over using FTP and then on the other side do a restore.

anyway the description of the requirement and environment is quite incomplete.
what about the dataset sizes? they might be a show stopper for any reasonable <network> transfer

NETVIEW FTP is a different thing from FTP
the acronym is the same, but the protocol is completely different
and it does not come for free


Thank you enrico-sorichetti , DFDSS is totally new to me , so I start reading the reference below, after I understand DFDSS I'll try to use it and post a feedback

http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/ADR5G102/CCONTENTS?DT=19930426114849

I know there's NETVIEW FTP in this two mainframe and could be used, but cause of poor knowledge of NETVIEW FTP , I don't know whether could use it to transfer VSAM , so I decide to learn DFDSS first.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Jan 06, 2012 3:18 pm    Post subject:
Reply with quote

Maybe there is the possibility of using shared dasd.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Fri Jan 06, 2012 3:20 pm    Post subject:
Reply with quote

Or using a cartridge
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Fri Jan 06, 2012 3:21 pm    Post subject:
Reply with quote

PeterHolland wrote:
Maybe there is the possibility of using shared dasd.


That would be the best , I also hope that icon_cry.gif
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Fri Jan 06, 2012 7:25 pm    Post subject:
Reply with quote

If there is no delete/define for a vsam file, why bother backing it up? If no one cares enough about it to be able to recreate it in a hurry, then it is probably not critical.

Now...go back and think about what I just said. There probably IS a delete/define parm set up for all of them, you just haven't found it.

Take more time for analysis and it will save you some work in the long run. At the very least, you should make new delete/define/repro parms for all of these vsam files.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1715
Location: UK

PostPosted: Sat Jan 07, 2012 12:56 am    Post subject:
Reply with quote

What has this got to do with TSO/ISPF?
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Sat Jan 07, 2012 2:01 pm    Post subject: Re: Reply to: How to use TCP/IP FTP to transfer VSAM file be
Reply with quote

enrico-sorichetti wrote:
why not take one or more DFDSS dump(s), send it/them over using FTP and then on the other side do a restore.

anyway the description of the requirement and environment is quite incomplete.
what about the dataset sizes? they might be a show stopper for any reasonable <network> transfer

NETVIEW FTP is a different thing from FTP
the acronym is the same, but the protocol is completely different
and it does not come for free



oh...... icon_sad.gif , Not authorized to use ADRDSSU

Code:

//DUMP1    EXEC PGM=ADRDSSU                   
//SYSPRINT DD SYSOUT=*                         
//IN       DD DSN=PK80I.EV6946.TESTIN,DISP=SHR
//OUT      DD DSN=PK80I.EV6946.TESTDUMP,       
//         DISP=(,CATLG),SPACE=(TRK,(1,1),RLSE)
//SYSIN    DD *                               
 DUMP INDDNAME(IN) OUTDDNAME(OUT)             
/*                                             


CSV025I PROGRAM CONTROLLED MODULE ADRDSSU NOT ACCESSED, USER UNAUTHORIZED

I think I have to take other ways
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Sat Jan 07, 2012 2:19 pm    Post subject: Reply to: How to use TCP/IP FTP to transfer VSAM file betwee
Reply with quote

why not work with Your support in order to find a solution in accord with Your organization restrictions ?
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Tue Jan 10, 2012 9:58 am    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

Suggest you repro the vsam data into qsam files, ftp them to the target system, define the same vsam files on the target, and runthe repro to load the data into the target system vsam files.


Hi dick , I have changed the vsam data into VB dataset with repro ,
and then use FTP transfer to target system with BIN transfer type, but I found the VB dataset is different from before , it seems that records was created as stream

Because there's hex word , if I don't use BIN , some word will be changed, could you tell me how to deal with this problem?

VB before transfer
xxxxxxxxxxxxxxxxxxx
yyyyyyyyy
zzz

VB after transfer
xxxxxxxxxxxxxxxxxxxyyyyyyyyyzzz
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Tue Jan 10, 2012 1:00 pm    Post subject: Reply to: How to use TCP/IP FTP to transfer VSAM file betwee
Reply with quote

Can you show your ftp control cards please.
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Tue Jan 10, 2012 1:10 pm    Post subject: Re: Reply to: How to use TCP/IP FTP to transfer VSAM file be
Reply with quote

Bill Woodger wrote:
Can you show your ftp control cards please.


Yes, the ftp control is below

Code:

userid password
BIN
LOCSITE RECFM=VB LRECL=27994 BLKSIZE=27998 TRACK                   
LOCSITE PRIMARY=12 SECONDARY=15                                     
GET 'EV6946.CICSTS32.DFHCSD' 'EV6946.CICSTS32.DFHCSD'               
QUIT
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 11, 2012 5:36 am    Post subject:
Reply with quote

Hello,

Does the file repro'd on the Sending system contain any CR or LF characters?

What happens if you repro the file to tape and then mount the tape on the target system?
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Wed Jan 11, 2012 8:20 am    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

Does the file repro'd on the Sending system contain any CR or LF characters?

What happens if you repro the file to tape and then mount the tape on the target system?


Hello dick
Below is the end of the record with hex mode ,
I didn't notice the mainframe CR or LF ever before ,
so I search with google , in mainframe CR or LF is hex:0D0A ? if it is , I think there's no CR or LF in the record below

Code:
ECBLDY..CEE         
CCCDCE00CCC         
53234823355         
 --------------------
ECCICS..CEE         
CCCCCE00CCC         
53393223355         
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us