Another option is to use IDCAMS PRINT with DUMP and then look at the output.
Regards, Joerg Pohlmann -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Sri h Kolusu Sent: Tuesday, September 12, 2023 9:32 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Scan a VSAM LDS? >> I was wondering if there is a way to scan a VSAM LDS for string occurrences? >> I know that there is no way to see the individual records, but it could be >> helpful if I could at least dump the data block where the string was found. Billy, VSAM LDS clusters are NOT supported by DFSORT. However, if your shop has File-Manager, then you use the following the job. //STEP0100 EXEC PGM=FILEMGR //SYSPRINT DD SYSOUT=* //DDIN DD DISP=SHR,DSN=Your.Input.LDS.Cluster //DDOUT DD SYSOUT=* //SYSIN DD * $$FILEM DSC INPUT=DDIN, $$FILEM PROC=* *REXXPROC IF FLD_CO(,,,'MBC$23005X') THEN WRITE(DDOUT) /* Thanks, Kolusu DFSORT Development IBM Corporation ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN