Advertisement
vccarvalho

Untitled

Jun 10th, 2022
1,741
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DEF VAR dfName AS CHAR NO-UNDO.
  2. DEF VAR seqName AS CHAR NO-UNDO.
  3. DEF VAR dfPath AS CHAR NO-UNDO INITIAL "e:\temp".
  4.  
  5. DISPLAY LDBNAME("DICTDB").
  6.  
  7. UPDATE dfPath.
  8.  
  9. ASSIGN dfName = dfPath + "/" + LDBNAME("DICTDB") + ".df".
  10. ASSIGN seqName = dfPath + "/" + LDBNAME("DICTDB") + "_seq.d".
  11.  
  12. RUN prodict/dump_df.p   ("all",dfName,SESSION:STREAM).
  13.  
  14. RUN prodict/dump_d.p   ("_user",dfPath,SESSION:STREAM).
  15.  
  16. OUTPUT TO seqName.
  17.     PUT UNFORMATTED "OUTPUT TO _SeqVals.d." SKIP.
  18.     FOR EACH _Sequence NO-LOCK:
  19.         PUT UNFORMATTED
  20.             "    EXPORT " _Sequence._Seq-Num " " QUOTER(_Sequence._Seq-Name) " CURRENT-VALUE( " _seq-name ")." SKIP.
  21.     END.
  22.     PUT UNFORMATTED "OUTPUT CLOSE.".
  23. OUTPUT CLOSE.
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement