Hello Team,
I have list of files and I would like to know which file is ESDS among those files using REXX. I thought of using LISTCAT but not sure how to use it in REXX. Please assist.
Need to check whether file is ESDS file or not by using REXX
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: Need to check whether file is ESDS file or not by using
Code: Select all
x = OUTTRAP( 'LISTING.' ) /* reroute output to REXX stem */
"TSO LISTDS ...parameters...." /* execute TSO command */
y = OUTTRAP( 'OFF' ) /* stop rerouting */
/* analyze LISTDS output line-by-line */
Do I = 1 To LISTING.0
Say LISTING.I
End I
Javas and Pythons come and go, but JCL and SORT stay forever.
-
- Posts: 15
- Joined: Tue May 17, 2022 12:57 pm
- Skillset: Mainframe Developer
- Referer: Through Colleague
Re: Need to check whether file is ESDS file or not by using
Thanks for your response!
Can I check with 'Non indexed' on any of the listing paramater ? If yes then could you please assist me on that.
Can I check with 'Non indexed' on any of the listing paramater ? If yes then could you please assist me on that.
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Need to check whether file is ESDS file or not by using
The word LINEAR springs to mind. Or perhaps better look for INDEXED not in the list. They will be in the ATTRIBUTES subsection of the DATA section.
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: Need to check whether file is ESDS file or not by using
Devrana wrote:Thanks for your response!
Can I check with 'Non indexed' on any of the listing paramater ? If yes then could you please assist me on that.
Use
Code: Select all
"TSO LISTCAT ENTRIES('TEST.ABC.DEF.GHI')"
For VSAM, you should get something like this:
Code: Select all
CLUSTER ------- TEST.ABC.DEF.GHI
IN-CAT --- CATALOG.USER.SUB2.TEST
DATA ------- TEST.ABC.DEF.GHI.DATA
IN-CAT --- CATALOG.USER.SUB2.TEST
INDEX ------ TEST.ABC.DEF.GHI.INDEX
IN-CAT --- CATALOG.USER.SUB2.TEST
Keyword for VSAM in this output is: CLUSTER (and also DATA, INDEX in following lines).
If not-VSAM, you'll get NON-VSAM.
Javas and Pythons come and go, but JCL and SORT stay forever.
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Need to check whether file is ESDS file or not by using
Should have mentioned that those sections are only shown if you do a LISTCAT ENT('name') ALL.
Or like in Segeykens sample, if the 'INDEX --' is missing then it is not indexed.
Or like in Segeykens sample, if the 'INDEX --' is missing then it is not indexed.
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: Need to check whether file is ESDS file or not by using
You can also try
Do something yourself, do not wait for help from heaven.
Code: Select all
"TSO LISTCAT LEVEL('hlq-prefix') CLUSTER and/or DATA and/or INDEX"
Do something yourself, do not wait for help from heaven.
Javas and Pythons come and go, but JCL and SORT stay forever.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
EZIOE004 Logical I/O error on file occurred reading VB file
by savitha_y » Mon Feb 15, 2021 7:54 pm » in CA-Easytrieve - 3
- 4965
-
by savitha_y
View the latest post
Wed Feb 17, 2021 5:02 am
-
-
-
File Handling 3 input files and 1 output file by using EZT
by pavan426 » Thu Sep 09, 2021 12:17 am » in CA-Easytrieve - 0
- 4428
-
by pavan426
View the latest post
Thu Sep 09, 2021 12:17 am
-
-
- 0
- 3503
-
by zeller56
View the latest post
Sun Oct 01, 2023 1:50 am
-
- 6
- 2511
-
by MFDEV
View the latest post
Fri Sep 11, 2020 9:04 am
-
- 10
- 4281
-
by chillmo
View the latest post
Thu Mar 13, 2025 12:01 am