ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » FileOutput FTP and GDG

Post new topic  Reply to topic
 FileOutput FTP and GDG « View previous topic :: View next topic » 
Author Message
cwazpitt3
PostPosted: Tue May 22, 2012 8:46 am    Post subject: FileOutput FTP and GDG Reply with quote

Acolyte

Joined: 31 Aug 2011
Posts: 61

Hi, I am using MB v7.0.0.2 and wondering if there is any way to do an FTP with a GDG+1 (Generation Data Set) to a mainframe? I don't think it is a built in feature of the FileOutput node, but I wanted to check with the experts. Has anyone come up with a good way to implement this such as a JCN or Shell Script (called via JCN)? Just trying to come up with a good solution. Seems like something MB should be able to handle...maybe in a future release.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue May 22, 2012 8:50 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The FTP capabilities in File nodes will likely only ever support FTP standard mechanisms.

So the question is not "how do I write a new GDG from Broker using FileOutput", the question is "what mechanism does the mainframe FTP server provide for indicating that a file should be put into a +1"?

It's been a long time since I've done FTP to mainframe GDGs, but I seem to recall it was as simple as putting "(+1)" at the end of the file name or something similarly straight forward.
Back to top
View user's profile Send private message
cwazpitt3
PostPosted: Tue May 22, 2012 8:59 am    Post subject: Reply with quote

Acolyte

Joined: 31 Aug 2011
Posts: 61

I'm also not an expert here, but I don't think it is just that easy. I think there are some site commands that also need to be setup that set the record size and other properties. I did find this http://www.ibm.com/developerworks/websphere/library/techarticles/1105_subrahmanyam/1105_subrahmanyam.html that claims to solve the problem, but I don't see what was done as a "complete" solution. Meaning in the JCN node code, he does not address the dataset name, which to me means it is missing something (or maybe I am just an idiot ). In any case, the shell script referenced at the top shows the use of the site commands:

Code:

nsubrahm@nsubrahm:~$ ftp big.blue.server
Connected to 0.0.0.0.
220-TCPFTP1 IBM FTP CS V1R12 at big.blue.server, 10:03:31 on 2011-03-16.
220 Connection will close if idle for more than 5 minutes.
Name (0.0.0.0:nsubrahm): USERID0
331 Send password please.
Password:
230 USERID0 is logged on.  Working directory is "USERID0.".
Remote system type is MVS.
ftp> [b]site RECFM=FB LRECL=100 BLKSIZE=27900[/b]
200 SITE command was accepted
ftp> [b]put Messages.csv 'A.TEST.GDG(+1)'[/b]
local: Messages.csv remote: 'A.TEST.GDG(+1)'
200 Port request OK.
125 Storing data set A.TEST.GDG.G0003V00
250 Transfer completed successfully.
336887 bytes sent in 1.17 secs (281.2 kB/s)
ftp> bye
221 Quit command received. Goodbye.


These lines are what I think I need to reuse...
site RECFM=FB LRECL=100 BLKSIZE=27900
put Messages.csv 'A.TEST.GDG(+1)'
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue May 22, 2012 9:06 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

cwazpitt3 wrote:
I'm also not an expert here, but I don't think it is just that easy. I think there are some site commands that also need to be setup that set the record size and other properties.


No, it should be that easy. When the GDG is defined RECFM & LRECL should be specified & IIRC any DCB parameters are ignored in preference of those for any new generation. Depending on how the site's DASD is controlled (SMS or otherwise) BLKSIZE may be used as a guideline or ignored completely.

cwazpitt3 wrote:
These lines are what I think I need to reuse...
site RECFM=FB LRECL=100 BLKSIZE=27900
put Messages.csv 'A.TEST.GDG(+1)'


I think you're right. I think you only need the put command, but (as I indicate above) there's no harm specifying the others. Worst case you'll get a warning about incompatible DCB if they don't match.

The problem will come if the GDG has an LRECL of 100 & Messages.csv does not....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue May 22, 2012 9:10 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Yeah, I'm not sure if the site command is strictly necessary or not.

I know there's been mention at various points about allowing the file nodes to specify Site commands, but I'm not up to date on what's been done or not.

The put statement shows that indeed, you just need to add "(+1)" to the end of the file to tell the mainframe ftp server to create a new GDG. So you might try that just off the cuff with the name you send or configure on the FileOutput node remote name.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » FileOutput FTP and GDG
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.