PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10/18/2016 7:05 AM by  John Henley
Globally setting workfile csv attributes
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Margie Gyurisin
Private
Private
Veteran Member
(1275 points)
Veteran Member
Posts:473


Send Message:

--
10/17/2016 11:29 AM

    In the past we have set our PRTRCSV globally set the attributes for the PRTRCSV file so that job will recognize the file to have no headers and a ccyymmdd date format. 

    Can someone point us in the right direction?  We can't remember how to do it.

     

    Thanks.

    Jeff Shumate
    Private
    Private
    Advanced Member
    (87 points)
    Advanced Member
    Posts:29


    Send Message:

    --
    10/17/2016 6:02 PM
    You would do that in the program definition. From the command line: pgmdef productline pr pr530 > choose file name PRTRCSV, hit F6 (define), then "B" ( define file attributes), change file header to off and change date format to ccyymmdd (and you may want to get rid of the date separator, I could not tell from your question). I don't know that you have to re-compile PR530, but I always do. That will set you up for every run of PR530. If you just want to do it at the job level, you would use the same process, except begin with jobdef.
    Karen Ploof
    Private
    Private
    Veteran Member
    (317 points)
    Veteran Member
    Posts:113


    Send Message:

    --
    10/17/2016 6:22 PM
    Hmmm.. what is the difference between doing that in wrkdef and in pgmdef?
    John Henley
    Private
    Private
    Senior Member
    (9563 points)
    Senior Member
    Posts:3205


    Send Message:

    --
    10/18/2016 7:05 AM
    Posted By Karen Ploof on 10/17/2016 6:22 PM
    Hmmm.. what is the difference between doing that in wrkdef and in pgmdef?

    Same. pgmdef executes wrkdef.

    And the recompile is not necessary, since the work file attributes are stored in GEN, not compiled.

    Thanks for using the LawsonGuru.com forums!
    John
    You are not authorized to post a reply.