0 pts.
 cl
i have a flat file. data is populated to this file on a daily basis. I need to create a new member every day as and when the flat file is populated.In my cl code I tried using AA *cat &qdate in addpfm and build the name of the file but couldnt do so...As stated earlier i neeed this to purge members based on the date...So naming convention is important. Please suggest

Software/Hardware used:
ASKED: December 23, 2008  2:58 PM
UPDATED: December 23, 2008  5:09 PM

Answer Wiki:
DCL &QDATE *CHAR 6 DCL &MBRNAME *CHAR 10 RTVSYSVAL SYSVAL(QDATE) RTNVAR(&QDATE) CHGVAR &MBRNAME ('AA' *CAT &QDATE) ADDPFM FILE(MYLIB/MYFILE) MBR(&MBRNAME) The file parameter number of members should be set to noMax.
Last Wiki Answer Submitted:  December 23, 2008  5:09 pm  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts. , philpl1jb   44,110 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I did the same too…there was some variable mismatch…thats been solved and it works fine thanks for your help…Can i delete these files based on the date…Do i need to use dltf as you mentioned earlier or is there an alternate way…

 0 pts.

 

If you are creating members use RMVM if you’re creating files use DLTF
both allow the wild card so you could delete all with the value AA200803*
to delete all from that month.

 44,110 pts.