Need to check whether file is ESDS file or not by using REXX



IBM's Command List programming language & Restructured Extended Executor

Need to check whether file is ESDS file or not by using REXX

Postby Devrana » Sat Oct 05, 2024 2:28 pm

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.
Devrana
 
Posts: 14
Joined: Tue May 17, 2022 12:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Need to check whether file is ESDS file or not by using

Postby sergeyken » Sat Oct 05, 2024 7:51 pm

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.
User avatar
sergeyken
 
Posts: 425
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 7 times
Been thanked: 40 times

Re: Need to check whether file is ESDS file or not by using

Postby Devrana » Sat Oct 05, 2024 10:56 pm

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.
Devrana
 
Posts: 14
Joined: Tue May 17, 2022 12:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Need to check whether file is ESDS file or not by using

Postby willy jensen » Sun Oct 06, 2024 1:41 pm

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.
willy jensen
 
Posts: 464
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 70 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post