I am interested in using PROC EXPLODE for a school project, but when the only examples I can find are from older versions of SAS. I have read about people using it in SAS 9, but for me it does not run. I have tried a few examples, such as this one:
filename ft15f001 temp;
options nodate pageno=1 linesize=80 pagesize=60;
proc explode;
parmcards;
HELLO WORLD
;
The error I get is from the line with "HELLO WORLD." I tried changing up the syntax in different ways, but it gives the error:
"ERROR: Column 1 of a parameter line can contain only a number, or the
characters D, L, P, S, or U."
I do not understand the parmcards statement, so any information on that could help me out as well.
Thank you in advance for any light that can be shed on this topic.
This works for me in 9.3 and brings back memories from long ago (possibly even SAS V5 ):
filename ft15f001 temp;
proc explode;
parmcards;
1 HELLO WORLD
;
run;
It looks like it doesn't exist past SAS 9.1 would be my guess.
What are you trying to do?
Sill listed in the 9.3 documentation: SAS(R) 9.3 Procedures by Name and Product
I stand corrected and interesting to know!!
As I recall the main use for this procedure was for header pages on lineflow reports. Can't remember the last time I saw a lineflow printer.....
This works for me in 9.3 and brings back memories from long ago (possibly even SAS V5 ):
filename ft15f001 temp;
proc explode;
parmcards;
1 HELLO WORLD
;
run;
Thank you! The 1 in front of the text made it work, none of the examples from previous versions of SAS contained that detail. Appreciate your help!
Your particular issue is that the first position of the parmcards instructions is used for formatting queues, like SASKiwi did 1 being the instruction to print on the first line. Just offset your text with a space
filename ft15f001 temp;
options nodate pageno=1 linesize=80 pagesize=60;
proc explode;
parmcards;
<space>HELLO WORLD
;
Vorsk. Saskiwi's remark is one to think about.
Those line printers were common until 1990 and in those years mainframe processing was the standard. That 1 on the first position is indicating new page.
As a separator page the explode approach was common as a marker in bulk prints
The days windows Unix are more common wit variable lettertypes and sizing. For educational purposes proc explode is nice with that history.
Common usage is not of real value today.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.