No can do!
However:
DEFINE Drivers ( )
Driver1 Driver2 Driver3 Driver4
!ENDDEFINE .
INPUT PROGRAM.
NUMERIC Drivers (F8).
LOOP #=1 TO 1.
END CASE.
END LOOP.
END FILE.
END INPUT PROGRAM.
FLIP.
LIST.
CASE_LBL var001
Driver1 .
Driver2 .
Driver3 .
Driver4 .
Number of cases read: 4 Number of cases listed: 4
Ujjawal wrote
I am trying to create a data file via syntax editor. I know this can be done using BEGIN DATA- END DATA command. I am curious to know how we can call macro within BEGIN DATA - END DATA.
DEFINE Drivers ( )
Driver1 Driver2 Driver3 Driver4
!ENDDEFINE .
DATA LIST FREE / Name (A50).
BEGIN DATA.
CALL MACRO HERE
END DATA.
Instead of typing category names within BEGIN DATA- END DATA, i would prefer typing within DEFINE-END DEFINE.
Let me build you the background. I want an user to input category names and paths at the beginning of the syntax. They just need to run syntax and reports will be generated automatically. The purpose is to make syntax user friendly.
Please suggest if any workaround. Any help would be greatly appreciated!
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"