[email protected] wrote: > Does anyone know how SYSPRINT can be OPENed for INPUT programmatically?
Same program or subsequent program in another step? Is your program the author/creator of the SYSPRINT or not? Or is that forwarded from previous step? Do you want to use the SYSPRINT in same job or is that in other job? > The following doesn't work: > SYSPRINT DCB DSORG=PS > OPEN (SYSPRINT,(INPUT)) A$$uming all is in same job and step, you will have a battle with GRS and JES2, this is simply WAD. Close your DD and re-open it again in same/subsequent program. >> I've tried both BSAM(DSORG=PS) and BDAM(DSORG=DA) access methods but with no >> success - OPEN return RC=8. As others said, post your JCL, program and all attributes of the dataset and example of data in that SYSPRINT. >> What I want is to read some records from SYSPRINT in an application program. Like Lizette kindly asked - What are you trying to achieve? There are better ways to do above depending on what you want to do. And as Tom asked, please subscribe to the list server at listserv.ua.edu. Groete / Greetings Elardus Engelbrecht ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
