I have a problem like this at work:
Some system requires a specific input like:
0000051420189999999 ABC12345678<20 SPACES>;
Which is a (some digit)
+ Sample_Date
+ (some digit)
+ x amount of spaces
+ Sample_KEY
+ y amount of spaces
.
I read a few online post about string concatenation and converting date into string. But the trailing spaces are always eliminated at the end.
PROC SQL;
CREATE TABLE WORK.MAINFRAME_FILE AS
SELECT CAT('0000',
COMPRESS(PUT((Sample_Date), MMDDYY10.), '/',),
'9999999 ',
Sample_KEY,
' ')
AS INPUT FORMAT=$100.
FROM WORK.TEST
;
QUIT;
How can I add some trailing spaces at the end, say 20? Thanks