DATA Step, Macro, Functions and more

capturing input data

Reply
Occasional Contributor
Posts: 7

capturing input data

Dear All,

 

I need to capture records while reading the input and display them in mainframe SPOOL. Can any body help me as how to achieve it?

Super User
Super User
Posts: 7,942

Re: capturing input data

Posted in reply to SudheerAnkem

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.

Occasional Contributor
Posts: 7

Re: capturing input data

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)

 

Thank you

Super User
Posts: 5,497

Re: capturing input data

Posted in reply to SudheerAnkem

What is the mainframe command (presumably a TSO command) that would print a message to the console (outside of any program)?

Occasional Contributor
Posts: 7

Re: capturing input data

Posted in reply to Astounding

I want to know the features of PROC PRINT option and how it is coonected to an output file

Super User
Posts: 5,497

Re: capturing input data

Posted in reply to SudheerAnkem

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.

Ask a Question
Discussion stats
  • 5 replies
  • 286 views
  • 0 likes
  • 3 in conversation