i tried your code and it is working fine. but i want the input from user so i have written one code for it but it is not working.
the GDG is not getting created can anyone suggest?
/* REXX */ ARG GDG CLS Y = MSG(OFF) IF GDG = ' ' THEN DO SAY 'ENTER THE GDG NAME:' PULL GDG END X = OUTTRAP(X.) "DEF GDG (NAME('GDG') LIM(3) NEMP NSCR)" X = OUTTRAP(OFF) SAY RC
Notice the content of your program when viewed from an ISPF Edit session:
/* REXX */ ARGGDG Notice that the REXX instruction is highlighted in RED while the variable is kept unhighlighted in the normal GREEN. ... SAY 'ENTER THE GDG NAME:' Same here. Note how the instruction is highlighted in RED while the literal string is left highlighted in a contrasting white color.
PULLGDG Same highlighting here. ...
If GDG is the name of the variable that contains the actual name entered by the user, then it must remain outside of the literal string and be shown in it's correct unhighlighted state: