Home > Ask the Data Center Experts > CICS Questions & Answers > FTP a dataset from MVS to Linux
Ask The Data Center Expert: Questions & Answers
EMAIL THIS

FTP a dataset from MVS to Linux

Robert Crawford EXPERT RESPONSE FROM: Robert Crawford

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: 19 February 2007
I am trying to FTP a dataset (in binary mode) from MVS to Linux which has RECFM=VB and LRECL=32756 and BLKSIZE=327560. I know, in MVS dataset there must be some bytes for BDW/RDW which tells the size of the record in dataset. After FTP when I read the dataset, the BDW/RDW bytes are removed from the dataset and now, it becomes difficult to read the dataset. Please suggest some ways, by which I can read these BDW/RDW bytes in Linux.

>
EXPERT RESPONSE
First, the BLKSIZE can't be 327560 (is this a typo)? The maximum is 32K (32760) for DASD and even on tape using the "new" Large BLKSIZE Interface (LBI) support the maximum is 256K (for 3590). I'll assume you meant 32760.

It might be easiest to convert the file to FB with LRECL=32756 prior to the FTP. A simple REXX program could be used. For example:

/* REXX */
"ALLOC FI(VBIN)  DA('my.file.VB') SHR REUSE"
"ALLOC FI(FBOUT) DA('my.file.FB') SHR REUSE"
"EXECIO  *  DISKR VBIN (FINIS"
queue ''
"EXECIO * DISKW FBOUT (FINIS"
"FREE  FI(VBIN)"
"FREE  FI(FBOUT)"
Exit 0

If you run this in batch you can allocate the files in JCL and don't need the ALLOC / FREE in the program.


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


RELATED CONTENT
CICS
Which MQ Queue is related with which CICS transaction?
Can a program use IXLLIST macros in CICS?
VSAM files in CICS -- Batch report help
Reading VSAM data from different LPARs
Finding executed statements in CICS
Submitting a batch job from CICS
Automating FTP transfers to AIX
Mainframe FTP - A simple check
Failed arithmetic operations on CICS programs written in C
Does replicating DB2 tables into CICS tables affect CPU usage?

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



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

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

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




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