[Migrated content. Thread originally posted on 17 February 2009]
The following is permissable with another compiler. Is there an EASY way to accomplish the same thing with AcuCobol 8. It accepts a file name at run time before the open occurs. The file name accepted could be something like: C:\\DATA\\FILEX.txtSELECT FILEIN ASSIGN TO "DUMMY" USING WS-FILE-NAME.
01 WS-FILE-NAME PIC X(50).
DISPLAY "ENTER FILE NAME: ".
ACCEPY WS-FILE-NAME.
OPEN INPUT FILEIN.



