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
 
Get all the data from multiple files to a single file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Mon Apr 02, 2007 11:52 am    Post subject: Get all the data from multiple files to a single file
Reply with quote

Hi all,

Please help me in this issue.

There are 'n' number of datasets of the foramt a.*.b.*.c*

I need to collect all such files in to a flat file.

Is there any utility for this requirement????

If so please send me the whole synatx of that.....

Many thanks in advance.......Please help me....
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Mon Apr 02, 2007 11:58 am    Post subject:
Reply with quote

Use File Master/File Aid search option (in batch mode) with search string as 'DSN='.
Back to top
View user's profile Send private message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Mon Apr 02, 2007 12:11 pm    Post subject: Re: Get all the data from multiple files to a single file
Reply with quote

Can you give me the syntax for that??
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Mon Apr 02, 2007 12:12 pm    Post subject:
Reply with quote

Prasanth,

Im very sorry about my previous post (which is a general search utility, needs a member for getting all the dataset names). Here is the code you wanted -

Code:

//STEPNAME EXEC PGM=IKJEFT01
//SYSTSPRT  DD SYSOUT=*
//SYSTSIN DD *
  LISTDS 'HLQHLQ' LEVEL
/*


Above code lists out all the datasets whose HLQ is 'HLQHLQ'. Modify the step according to your need.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 686
Location: Earth

PostPosted: Mon Apr 02, 2007 12:27 pm    Post subject:
Reply with quote

I am confused,
Do you want all DSN names in 1 file OR
you want data from all the files in to one?
Back to top
View user's profile Send private message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Mon Apr 02, 2007 12:50 pm    Post subject: Re: Get all the data from multiple files to a single file
Reply with quote

No I DONT NEED THE DATA INSIDE THE FILE....


FOR EXAMPLE

WHILE 3.4 OPTION THERE ARE DATASETS LIKE

A.*.B.*.C*

THERE ARE 1000 DATASETS LIKE THIS...

I NEED ALL THESE 1000 DATASET NAME IN A FILE....

PLEASE HELP ME...
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Mon Apr 02, 2007 1:10 pm    Post subject:
Reply with quote

Prasanth,

The step which I posted earlier accomplishes your task

or

List out A.*.B.*.C* datasets using 3.4 option. At the command prompt give the following command -

Code:
SAVE LIST
.

The above saves all the datasets list into ????????.LIST.DATASETS (where ???????? = YOURTSOID). This is the easiest way (I feel) to get all the dataset name into a flat file.
Back to top
View user's profile Send private message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Mon Apr 02, 2007 2:56 pm    Post subject: Re: Get all the data from multiple files to a single file
Reply with quote

THANK YOU FOR THIS INFORMATION....

IT WORKS!!!!
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm

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