Refresh Changed Information



IBM's Command List programming language & Restructured Extended Executor

Refresh Changed Information

Postby graydsl » Tue Jun 02, 2009 7:10 pm

Hello,

I have a problem after uploading Members into a PDS. All "meta-information" is lost... Created-/Changed-Date Size ID etc. Is there a way to refresh or regenerate him? If I manually change the file with the ISPF editor, the information is written to the file. But if I'm trying to edit it with TSO ("ALLOC... EXECIO..." etc.) it doesn't work. Here is a screenshot which shows the broken members:

Image

I hope you can help me! Thanks!
graydsl
 
Posts: 4
Joined: Thu Mar 05, 2009 4:05 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Refresh Changed Information

Postby MrSpock » Tue Jun 02, 2009 7:21 pm

My only thought at this point is if you're working with a PDS, and you're interested in maintaining proper ISPF statistics for the members, then you should probably stick to using ISPF services and/or EDIT macros for all of your processes.

I always try to stick to this rule "when working with a PDS, use ISPF to properly manage it".
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Refresh Changed Information

Postby graydsl » Tue Jun 02, 2009 7:32 pm

It will be sufficient to set the dates manually after the upload. Thank God i found another thread here in the forum where LMMSTATS is suggested to set member stats. I will try it, but I think that will be the solution. :mrgreen:
graydsl
 
Posts: 4
Joined: Thu Mar 05, 2009 4:05 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Refresh Changed Information

Postby graydsl » Tue Jun 02, 2009 8:10 pm

Hm... I don't know why my code doesn't work! I tried some variations of qualifiers for the DATASET parameter, but that's not working. Hopefully someone finds the bug.

REXX-Code:
000001 /* REXX */                                                         
000002 TRACE 'A'                                                           
000003 ADDRESS ISPEXEC "LMINIT DATAID(DID) DATASET(T1.SPUFI)"             
000004 say did                                                             
000005 ADDRESS ISPEXEC "LMMSTATS DATAID("did") MEMBER(ELFE2) USER(X1M6979)"
000006 ADDRESS ISPEXEC "LMFREE DATAID("did")"                             


OUTPUT:
     3 *-* ADDRESS ISPEXEC "LMINIT DATAID(DID) DATASET(T1.SPUFI)"             
       >>>   "LMINIT DATAID(DID) DATASET(T1.SPUFI)"                           
       +++ RC(-3) +++                                                         
     4 *-* say did                                                             
DID                                                                           
     5 *-* ADDRESS ISPEXEC "LMMSTATS DATAID("did") MEMBER(ELFE2) USER(X1M6979)"
       >>>   "LMMSTATS DATAID(DID) MEMBER(ELFE2) USER(X1M6979)"               
       +++ RC(-3) +++                                                         
     6 *-* ADDRESS ISPEXEC "LMFREE DATAID("did")"                             
       >>>   "LMFREE DATAID(DID)"                                             
       +++ RC(-3) +++                                                         
READY                                                                         
END                                                                           
graydsl
 
Posts: 4
Joined: Thu Mar 05, 2009 4:05 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Refresh Changed Information

Postby graydsl » Wed Jun 03, 2009 3:18 pm

MWHAHAHAHAAH!!! IT WORKS! FINALLY! :mrgreen:

I didn't use ISPSTART in the JCL! :)
graydsl
 
Posts: 4
Joined: Thu Mar 05, 2009 4:05 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Refresh Changed Information

Postby dick scherrer » Thu Jun 04, 2009 1:16 am

Good to hear it is working - thanks for keeping us updated :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post