FTP JCL



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

FTP JCL

Postby SKANDA » Wed Dec 14, 2016 12:17 pm

hi all,
can any one help me to write a JCL to ftp a file from mainframe to Windows pc.
Thing here is ,the file which I want to send from Mainframe is an delimited file.

If possible please provide some sample JCL code.

thanks all.
SKANDA
 
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Has thanked: 17 times
Been thanked: 0 time

Re: FTP JCL

 

Re: FTP JCL

Postby BillyBoyo » Wed Dec 14, 2016 3:22 pm

ibm ftp sample jcl

Stick those in a search-engine.

These users thanked the author BillyBoyo for the post:
SKANDA (Thu Dec 15, 2016 11:42 am)
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 263 times

Re: FTP JCL

Postby steve-myers » Wed Dec 14, 2016 5:06 pm

BEFORE you can use FTP on a mainframe to initiate sending data to a PC, a program called an FTP server must be running on the PC. There is no such thing provided in essentially all Windows client systems. While it is not too terribly difficult to prepare such a program on a client PC other things must be done on the PC and possibly elsewhere before a mainframe FTP can contact the newly installed FTP server on the PC.

These tasks are better done by your support. Talk to your support FIRST.

These users thanked the author steve-myers for the post:
SKANDA (Thu Dec 15, 2016 11:42 am)
steve-myers
Global moderator
 
Posts: 1856
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 188 times

Re: FTP JCL

Postby Robert Sample » Wed Dec 14, 2016 6:29 pm

Thing here is ,the file which I want to send from Mainframe is an delimited file.
FTP doesn't care about delimited files. FTP sends text or binary data -- a delimited file is a text file and that's all FTP needs to know. FTP works on the entire data set (mainframe) or file (PC) -- the contents are not relevant (unless you're wanting to use code pages other than the default).

These users thanked the author Robert Sample for the post:
SKANDA (Thu Dec 15, 2016 11:42 am)
Robert Sample
Global moderator
 
Posts: 3326
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 218 times

Re: FTP JCL

Postby SKANDA » Thu Dec 15, 2016 11:41 am

Hi all,
Thank you all for your great response.
I will check with support team and let me update the process.

Thanks all,
Skanda
SKANDA
 
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Has thanked: 17 times
Been thanked: 0 time

Re: FTP JCL

Postby NicC » Fri Dec 16, 2016 4:40 am

The JCL will probably not be much of a problem - presumably your site already has some that you can copy. The trick would be getting the correct control records to 'drive' the ftp process.
These are not JCL. Again, you can probably find some at your site that you can modify to your requirements. If your site does nt have any FTP process then you will have to speak to your networking group as they will have to approve and set up. They will alao define what your JCL and control records must be.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2671
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 101 times


Return to JCL