09-23-2016 04:43 AM
You would need to provide some information on the problem. What "records" are being captured from "reading in". Where is that all happening, what software are you using, how is it being read etc. Your second part about spooling would need expanding to, where are you outputting, how etc. You can send things to command line via X or sysfunc() - look at the manual for information.
09-23-2016 07:19 AM
I am using Mainframe SAS and the programs are exeucted by a and JCL (Job Control Language). SAS program reads data from the input file supplied by the JCL (or Job). Program reads the input file data (row wise and they are called records) and do the process and generates report. My need is, to capture that input records and PRINT it to console / SPOOL (similar to DISPLAY in COBOL languae)
09-23-2016 10:49 AM
If you examine the SAS procedure, it generates a DD statement that holds all reports, including the reports from PROC PRINT. There are ways to override that behavior, and send some or all reports to a DD statement of your choosing. I can't tell you the name of the DD statement, since it's been about 30 years since I used SAS on a mainframe. The names of the DD statements could easily have changed since then.