View previous topic :: View next topic
|
Author |
Message |
nareshratnala
New User
Joined: 27 May 2009 Posts: 8 Location: bangalore
|
|
|
|
Hi,
COuld you please help on the MGET of multiple files with same name to a dataset?
The name of the files are like this.
Claim_20140902025518.txt
Claim_20140902034033.txt
Claim_20140902070906.txt
Claim_20140902083122.txt
Claim_20140902101835.txt
Claim_20140902103349.txt
Thank you. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3051 Location: NYC,USA
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You can MGET those files to a Unix directory. You cannot use MGET to put them to z/OS data sets. |
|
Back to top |
|
|
nareshratnala
New User
Joined: 27 May 2009 Posts: 8 Location: bangalore
|
|
|
|
Robert Sample wrote: |
You can MGET those files to a Unix directory. You cannot use MGET to put them to z/OS data sets. |
Hi,
You mean we cannot take to a dataset file in mainframe.
we dont have the unix environment.
we need to take it through a jcl and process via program to load into the database. |
|
Back to top |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
It should be straightforward enough.
What have you tried and what problems are you getting? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
With MGET, you need every file name on the remote system to match z/OS expectations: data set names no more than 44 characters, a period every 8 (or less) characters, the first character after a period must be an alphabetic or specified national character; if you are going to a PDS, every file name must be 1 to 8 characters with the first being alphabetic / national.
The file names you posted do NOT meet the z/OS data set name criteria and hence you cannot transfer them to a z/OS system as data sets using MGET (or anything else, for that matter). You could use GET and a local data set name for each file name, but as you have posted MGET cannot be used. |
|
Back to top |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
You are of course correct Robert, I do apologise. I was thinking of doing multiple GETs but appending the data to one mainframe dataset.
I must read the questions properly! |
|
Back to top |
|
|
|