View previous topic :: View next topic
|
Author |
Message |
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
Hi,
I'm in the look out for a job(JCL) that can FTP (using PGM=FTP) a file from one region to an other one, kindly help.
Thanks,
Cheers, Twissi. |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
Hi,
Quote: |
I'm in the look out for a job(JCL) that can FTP (using PGM=FTP) a file from one region to an other one, kindly help. |
I believe you want job to FTP file from one server to another.
Please make search in forum you will get JCL.
Hope this helps
Regards
Rupesh |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
Hi,
This's not what I was looking for, I knew it already.
I want a job that FTPs a file from one region to a different region(not any windows or unix server) of the same mainframe.
We usually use XMIT to accomplish this function but XMIT is a mannual process and I'm looking to automate it.
Hope this's clear.
Thank you so much for your interest, hoping to get the correct one from you,
Cheers, Twissi. |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
any chance that a shared dasd vol for these regions is available? no need to ftp/xmit then |
|
Back to top |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
Dave,
There is nothing common to these regions, so the only options I can think about is to FTP the file or maybe XMIT it because the regions are on the same mainframe.
Thoughts??
Cheers, Twissi. |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
dump it to tape and read it in as an uncataloged dataset by specifying volser |
|
Back to top |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
hy twissi,
note: with XMIT you don't transfer anything, you just put
a dataset into the mainframe compatible XMIT format,
if you need to transfer this, you also have to use something
like ftp.
ftp uses the tcp/ip address from the target system,
to transfer it, check what is the ipadr/port# for your target...
all other specifications, you can read in the manual as
provided by superk.
martin9
ps: there is no need to know the solution,
just know, where to find the right manual,
where the solution is described.
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B950/4.9?DT=20050708142126 |
|
Back to top |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
Hi Martin9,
I've accomplished this task by automating XMIT !! see the syntax below:
Code: |
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT2 DD DSN=&TEMP(GO),DISP=(,PASS),UNIT=VIO,
// SPACE=(CYL,(1,1,1)),DCB=(RECFM=FB,LRECL=80,BLKSIZE=11440)
//SYSUT1 DD *
PROC 3 NODE USER DSN
CONTROL MSG LIST CONLIST NOFLUSH
ERROR DO
SET &RET = &LASTCC
RETURN
END
/* RECEIVERS USERID SHOULD PREFERABLY BE AN EXISTING USERID OR THE
/* XMIT LOG DATASET WILL BE CATALOGED AT THE RECEIVER IN THE MASTER
/* CATALOG
XMIT &NODE/&USER DSNAME('&DSN') NONOTIFY NOLOG
//*
//TSO EXEC PGM=IKJEFT01,REGION=4096K,DYNAMNBR=50
//SYSTSPRT DD SYSOUT=*
//SYSPROC DD DSN=&TEMP,DISP=(OLD,DELETE)
//SYSTSIN DD *
%GO AMVS123 IDHERE E13371.?MENDV.TEMP(FTP)
//* ^ ^ ^
//* ! ! !
//* ! ! TRANSMITTED DATASET
//* ! RECEIVER
//* RECEIVING NODE (DESTID)
|
Like this we also need a receiving job at the receiving node.
Thank you all for your help.
Cheers,Twissi. |
|
Back to top |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
hy twissi,
your solution looks fine,
BUT NOTE THIS.
with this job you transfer nothing.
XMIT is a transferable mainframe format.
after you have created this XMIT file using TSO-command XMIT,
you still have to transfer it to somewhere.
now your XMIT-file is still on your partition, ok?
but now, you will be able to transfer it to anywhere,
using ftp for example.
martin9 |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
No, not true. XMIT is NJE (Network Job Entry). I have used the same code, and it does work to transfer a dataset from one node to the other. |
|
Back to top |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
hy,
ok, but this means, this file will be transfered only if the target node
is really known. therefore i suggest, twissi does not want to transfer
it to another system outside. (NJE is the internal mainframe network
job entry...).
we use xmit only to send data files to other customers or vendors
which also have a mainframe. inhouse it is easier to use any ftp.
but nevertheless, thanks for your explanation...
martin9 |
|
Back to top |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
Hi Martin9,
I guess there was a bit of confution for you, superk's solution was what exactly I was looking for!
And I'm sure you would definitely have given me the solution had you understood the requirement correctly.
Thanks to all of you.
Cheers, Twissi. |
|
Back to top |
|
|
RaviTejaG
New User
Joined: 21 May 2010 Posts: 8 Location: Hyderabad
|
|
|
|
Hi Twissi,
i read your post and want some explanation from you,
can you explain the use of following statements,
//SYSUT1 DD *
PROC 3 NODE USER DSN
CONTROL MSG LIST CONLIST NOFLUSH
ERROR DO
SET &RET = &LASTCC
RETURN
END
and
%GO AMVS123 IDHERE E13371.?MENDV.TEMP(FTP)
Thank You,
RaviTeja.G[/b] |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
RaviTejaG
The topic to which you have replied has been happily dormant for over 4 and a half years.
Do you really think that you will get a response ? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Hope for you twissi is still around after 4 years and some months. |
|
Back to top |
|
|
RaviTejaG
New User
Joined: 21 May 2010 Posts: 8 Location: Hyderabad
|
|
|
|
Hi expat,
i have faith on this forum that's y i posted.
Regards,
RaviTeja.G |
|
Back to top |
|
|
RaviTejaG
New User
Joined: 21 May 2010 Posts: 8 Location: Hyderabad
|
|
|
|
i am not asking only Twissi ,if anyone knows about it can explain or can give me pointers.
Regards,
RaviTeja.g |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
unfortunately twissi is probably the only person who can tell us the code of the CLIST or REXX called GO |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Rather that work thru the old solution that may or may not do what you want, you should get more useful replies if you post what you are trying to do and where there are questions/problems. . . |
|
Back to top |
|
|
|