View previous topic :: View next topic
|
Author |
Message |
chamajid
New User
Joined: 12 Aug 2021 Posts: 1 Location: United States
|
|
|
|
HI
I need some help in jcl where we have a 100's of datasets and we receive one every week. We need to load the last 30 ps dataset names into another ps dataset. Our etl program uses a filelist to read the names of the datasets and load those 30 datasets into the database.
Dataset names
PDABC.BJHGY.F123.T001
PDABC.BJHGY.F123.T002
PDABC.BJHGY.F123.T003
PDABC.BJHGY.F123.T004
PDABC.BJHGY.F123.T005
PDABC.BJHGY.F123.T006
.....
PDABC.BJHGY.F123.T100
Put names Into this PS
BJHGV.ABCD.F123.FILELIST
Thanks,
Chamajid |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
You cannot do it just in JCL.
The solution depends on whether you are ok with entering the datasetnames yourself, in which case you can use ISPF 3.4 to list the datasetnames and cut/paste to the list dataset. Or save the entire list and edit the generated dataset.
Otherwise you need a program. REXX springs to mind as you can easily do a LISTCAT to get the names and generate the list. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
Back to top |
|
|
|