cl

pts.
Tags:
CL
CL programming
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • 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 pointsBadges:
    report
  • philpl1jb
    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.
    49,570 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following