Home > Ask the Data Center Experts > z/OS and OS/390 Questions & Answers > Batch FTP
Ask The Data Center Expert: Questions & Answers
EMAIL THIS

Batch FTP

Mark Zelden EXPERT RESPONSE FROM: Mark Zelden

Pose a Question
Other Data Center Categories
Meet all Data Center Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 02 March 2006
I do an FTP get against a production server. When I do it on our test box it creates a file of fixed block format with an LRECL of 128 bytes. When I run the exact same FTP against the same server on our production mainframe it creates a variable blocked file of 256 bytes. Very odd. Different data pools? Different defaults? What do I do to make the file produced in production be FB/128?


BROWSE BY TAG
z/OS and OS/390,   VIEW ALL TAGS

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
z/OS and OS/390
Automating FTP transfers to AIX
Troubleshooting mainframe to Linux FTP
Is your z/OS problem a known vulnerability?
FTP help
TCP/IP problem
Performance without high DASD usage
Ethernet-converted printers
Additional communication possibilities besides "dark fiber" and DWDM
Lost GDG
COBOL program that will run in z/OS and open in MS-Word

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


It sounds like the defaults are different on the "test box" (is this a different LPAR than the production mainframe you mention?) and the production mainframe. There are defaults that come with the system and they are customizable by the system programmer. There is a somewhat complicated search order for where these defaults can be specified or overridden by the user (see the manuals I quote below for details), but they are in a file called FTP.DATA or FTPSDATA. The default LRECL is 128 and the default RECFM is VB if the system programmer does not change any of the defaults. The file also controls things like the default space allocation size and type (trk vs.cyl) and whether the default FTP environment is z/OS MVS or z/OS Unix.

The best way to ensure you always get the file format you want is to use the SITE or LOCSITE commands prior to issuing a GET or PUT in your FTP process. If you are doing a GET from the mainframe you would use LOCSITE prior to the GET. If you were doing a PUT from another platform to the mainframe, you would use the SITE command - which you need to send via "QUOTE SITE".

Here is an example of doing a GET from an FTP batch job on the mainframe (assume the server is at 172.19.158.100):

//FTP JOB (ACCT),CLASS=A,...
//STEP1 EXEC PGM=FTP,REGION=4M,PARM='(EXIT'
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//INPUT DD *
172.19.158.100
userid
password
locsite LRECL=80 BLKSIZE=27920 RECFM=FB
locsite CYL PRIMARY=100 SECONDARY=20
binary
get /dir1/dir2/mydata.bin 'USERID.MY.DATA'
quit
/*

For more information on using FTP on z/OS see:
IP User's Guide and Commands -

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B920/

For more information on customzing FTP on z/OS see:
IP Configuration Reference -
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B420/

IP Configuration Guide -
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B320/




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Building Green Data Centers
HomeNewsTopicsITKnowledge ExchangeTipsBlogsMultimediaWhite PapersEvents
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts