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
 

 

Hw to delete a file from a server thru FTP done 4m mainframe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Jayalakshmi

New User


Joined: 02 Sep 2005
Posts: 26
Location: Hyderabad

PostPosted: Mon Jan 23, 2006 3:08 pm    Post subject: Hw to delete a file from a server thru FTP done 4m mainframe
Reply with quote

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
View user's profile Send private message

khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Mon Jan 23, 2006 3:36 pm    Post subject: FTP
Reply with quote

If u wanna to delete the file from FTP server u can use

'mdel filename' such that it will delete it from the server.

View this link to know more about the ftp commands....

http://www.cs.colostate.edu/helpdocs/ftp.html
http://www.columbia.edu/acis/eds/data_tools/ftp-man/ftp_com.html
Back to top
View user's profile Send private message
Jayalakshmi

New User


Joined: 02 Sep 2005
Posts: 26
Location: Hyderabad

PostPosted: Mon Jan 23, 2006 4:11 pm    Post subject: Re: Hw to delete a file from a server thru FTP done 4m mainf
Reply with quote

Hi khamarutheen,

Thanks for the quick reply.
Link is a good one with the basic stuffs.

Regards,
Jaya
Back to top
View user's profile Send private message
Prandip

New User


Joined: 04 Mar 2005
Posts: 85
Location: In my tiny cubicle ...

PostPosted: Mon Jan 23, 2006 4:31 pm    Post subject: Re: Hw to delete a file from a server thru FTP done 4m mainf
Reply with quote

No, you use the DELEte command to delete a single file:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B950/5.16?DT=20050708142126

MDelete is for deleting multiple files:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B950/5.39?DT=20050708142126
Back to top
View user's profile Send private message
Jayalakshmi

New User


Joined: 02 Sep 2005
Posts: 26
Location: Hyderabad

PostPosted: Wed Jan 25, 2006 2:55 pm    Post subject: Re: Hw to delete a file from a server thru FTP done 4m mainf
Reply with quote

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
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Wed Jan 25, 2006 3:19 pm    Post subject: FTP in JCL
Reply with quote

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
View user's profile Send private message
Jayalakshmi

New User


Joined: 02 Sep 2005
Posts: 26
Location: Hyderabad

PostPosted: Wed Jan 25, 2006 6:37 pm    Post subject: Re: Hw to delete a file from a server thru FTP done 4m mainf
Reply with quote

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
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Jan 25, 2006 6:49 pm    Post subject: Re: Hw to delete a file from a server thru FTP done 4m mainf
Reply with quote

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
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Wed Jan 25, 2006 7:03 pm    Post subject: FTP in JCL
Reply with quote

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
View user's profile Send private message
Jayalakshmi

New User


Joined: 02 Sep 2005
Posts: 26
Location: Hyderabad

PostPosted: Wed Jan 25, 2006 7:45 pm    Post subject: Re: Hw to delete a file from a server thru FTP done 4m mainf
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts Liberty Angel Server using RACF Keyring martin9 CICS 0 Tue May 02, 2017 5:49 pm
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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