View previous topic :: View next topic
|
Author |
Message |
Jayalakshmi
New User
Joined: 02 Sep 2005 Posts: 26 Location: Hyderabad
|
|
|
|
Hi all,
From mainframe side, thru JCL we can FTP to pull a text file from a server.
Suppose, that a file is pulled successfully into a dataset and processing is done.
Now, i will have to delete both the dataset created on mainframe side as well as the text file from the server.
But, could anybody let me know how to delete the text file on a server to be deleted thru FTP. (If possible - ASAP) These things will be thru JCL.
Regards,
Jaya. |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
Back to top |
|
|
Jayalakshmi
New User
Joined: 02 Sep 2005 Posts: 26 Location: Hyderabad
|
|
|
|
Hi khamarutheen,
Thanks for the quick reply.
Link is a good one with the basic stuffs.
Regards,
Jaya |
|
Back to top |
|
|
Prandip
New User
Joined: 04 Mar 2005 Posts: 84 Location: In my tiny cubicle ...
|
|
Back to top |
|
|
Jayalakshmi
New User
Joined: 02 Sep 2005 Posts: 26 Location: Hyderabad
|
|
|
|
Hi all,
Thanks for the above clarification Prandip.
And there are some more queries reqarding FTP:
(1)In JCL we say
step1 exec pgm=FTP
Here, is this FTP a utility program or a module?
(2) We specify the FTP commands we want to use in a parmcard. In this we specify the IP address.
So, in this process, how is the mainframe connecting to the FTP environment.
Apart from this in my shop, we need to specify some FTPDATA where we give the connect time details etc.
Could anyone explain the whole process behind this FTP through JCL.
Regards,
Jaya. |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi Jayalakshmi,
In my shop generally i connect in two ways
1. ftp yuibm
2. ftp 155.32.4.25
like wise. if i use option one then it is connected to the mainframe server(yuibm).. if u use option two it is connected to some FTP server. So the usage of ip address conect to FTP server and the name to mainframe server. The commands are passed thru the JCL and it is recognized by the server once according to the connection specification. Then the rest goes.. Hope understood. Let me know if any.... |
|
Back to top |
|
|
Jayalakshmi
New User
Joined: 02 Sep 2005 Posts: 26 Location: Hyderabad
|
|
|
|
Hi khamarutheen,
Just need some help in debugging this piece of FTP code:
PROC:
Code: |
//FTP001 EXEC PGM=FTP,PARM='&IP (EXIT'
//SYSERR DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//SYSFTPD DD DISP=SHR,DSN=SYS1.TCPPARMS(FTPCLIEN)
//INPUT DD DSN=T&AREA..GENERAL.PARMLIB(&MEMB),DISP=SHR
//*
|
This Parmcard has the FTP commands:
I am not able to connect to the IP i specified.
Job abends saying
"CSV026I MODULE FTP NOT ACCESSED. PROGRAM ACCESS DATA SET RESTRICTION".
Regards,
Jaya. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Jayalakshmi wrote: |
"CSV026I MODULE FTP NOT ACCESSED. PROGRAM ACCESS DATA SET RESTRICTION". |
Means that you don't have RACF authority to execute FTP. |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi jaya,
Quote: |
"CSV026I MODULE FTP NOT ACCESSED. PROGRAM ACCESS DATA SET RESTRICTION". |
The error itself says that u dont have sufficient rights to access the FTP procedure.
Code: |
//INPUT DD DSN=T&AREA..GENERAL.PARMLIB(&MEMB),DISP=SHR |
Seems to b wrong. Either it may b &TAREA.. like that..
check it of.. Let me know if any.
Use search option and type 'FTP' and choose category as JCL u may get some program by other users.... |
|
Back to top |
|
|
Jayalakshmi
New User
Joined: 02 Sep 2005 Posts: 26 Location: Hyderabad
|
|
|
|
Hi,
That is definitely an access problem. Trying to sort out with our operation team.
Regarding the DSN name, it can be T&AREA..GENERAL.PARMLIB
'&AREA' will be passed according to country codes. So, it works and this will not create any problem.
Regards,
Jaya. |
|
Back to top |
|
|
|