Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
DSN changes on FTP's between mainframe & PC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
warren

New User


Joined: 30 Aug 2006
Posts: 14
Location: Tampa, Florida

PostPosted: Wed Sep 13, 2006 7:56 pm    Post subject: DSN changes on FTP's between mainframe & PC
Reply with quote

User is currently doing get's & put's between mf & pc. They don't do mget & mput, because the DSN must change. Format example:

put c:\aabbbbbccccc00001 "'hlq.ilq.aa.bbbbb.ccccc.s00001'"

A high-level qualifer & intermediate-level qualifier must be appended to the front of the DSN's. Periods must also be inserted, breaking up the a's, b's & c's. Finally, an 's' must be inserted before the LLQ.

So the user's type them in manually and do not use mget or mput because they don't know how to define the mainframe DSN's with the PC DSN's, in a separate directory or folder. Neither do I.

My questions are: (1) how do I format multiple file DSN conversion's in FTP so that mgets & mputs can be used and/or (2) can I do this from TSO or REXX?

The problem with (2) is that I'd have to code an EXEC with a panel, etc. and have the user input the internet address of their PC, which of course would be different for each user. From the PC, the user only has to know the mainframe IP address.

I have looked in the FTP manual and also the IP User's Guide but cannot find examples of changing DSN between PC & mainframe, that was not hardcoded with just 1 file name conversion.

Someone mentioned writing a PERL script to rename the DSN's and contain the FTP commands. I don't know PERL but if the board thinks this solution would work, I would appreciate a title whereby I could pick the language up, just basically enough to do this one project.

Thanx!
Back to top
View user's profile Send private message

raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Wed Sep 13, 2006 10:13 pm    Post subject: DSN changes on FTP's between mainframe & PC
Reply with quote

I dont have exact solution but an alternate

ftp from pc to mainframe
if you have all files only with last qualifiers like s0001, s0002 in yout pc location. C:\ftp

ftp <login passw>
pwd -------- will give current directory in mainframe i.e user id
cd aaa
cd bbb
cd ccc
mput ------ will place all members to your pds.

mget is also same way. you receive all files as exact member names not with pds name.

will it help.
Back to top
View user's profile Send private message
warren

New User


Joined: 30 Aug 2006
Posts: 14
Location: Tampa, Florida

PostPosted: Wed Sep 13, 2006 10:37 pm    Post subject: Re: DSN changes on FTP's between mainframe & PC
Reply with quote

These are sequential files, not PDS members. And the sequence number as the low-level-qualifier will not always be in exact order; that is, '00001' might be followed by '00002' but maybe by '00003' instead.

The user will specify the dataset names on the C: drive, in a directory or folder. I just need a script method for string manipulation of those PC dataset names into mainframe DSN's, with the periods, etc., so that the users can use an 'mget' & 'mput', instead of a straight 'get' & 'put'.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Mainframe Blocks to Tracks conversion upendrasri JCL & VSAM 1 Sat Nov 18, 2017 10:52 am
No new posts NDM 300 files from mainframe to linux shreya19 All Other Mainframe Topics 2 Thu Oct 26, 2017 11:40 am
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am
No new posts How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us