Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Tips and Techniques: Displaying Dates in Excel

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tips and Techniques: Displaying Dates in Excel

    ** This thread discusses the article: Tips and Techniques: Displaying Dates in Excel **
    ** This thread discusses the Content article: Tips and Techniques: Displaying Dates in Excel **
    0

  • #2
    Tips and Techniques: Displaying Dates in Excel

    ** This thread discusses the article: Tips and Techniques: Displaying Dates in Excel **
    Client Access has a built-in "Data Transfer from iSeries" function ('Actions', 'Receive File From Host...') which has numerous formats for output, including native excel formats (through MS Excel 8). It's VERY fast, has considerable query capabilities, and easily handles everything that this column notes as a shortcoming of CPYTOIMPF.

    Comment


    • #3
      Tips and Techniques: Displaying Dates in Excel

      ** This thread discusses the article: Tips and Techniques: Displaying Dates in Excel **
      Not exactly. If you use this with "DATE" type fields, it doesn't import them correctly. Also "null" dates (01-01-0001 on the iSeries) aren't recognized by Excel at ALL.

      Comment


      • #4
        Tips and Techniques: Displaying Dates in Excel

        ** This thread discusses the article: Tips and Techniques: Displaying Dates in Excel **
        I've pasted a small sample directly from an excel spreadsheet that was downloaded from a file on our iSeries. The dates both appear and function as they should.
        Code

        Comment


        • #5
          Tips and Techniques: Displaying Dates in Excel

          ** This thread discusses the article: Tips and Techniques: Displaying Dates in Excel **
          I'm always amazed at statements such as "The reason CPYTOIMPF is limited is that it outputs fixed-length field values (it does not trim off trailing blanks)..." CPYTOIMPF outputs fixed-length fields as fixed-length values, and variable-length fields as variable-length values. It would be nice to have an optional feature to trim trailing blanks from fixed-length fields, but you have to remember that the full fixed-length value, complete with trailing blanks is the ACTUAL VALUE OF THE DATA IN THE FIELD. Truncating the data means altering the data. Granted, in very many cases altering the data may produce the most convenient output format. Still, the CPYTOIMPF command should not as a default alter the value of any data -- fixed-length or otherwise. I think the problem stems from the fact that there's so much System-38, AS/400, iSeries legacy data and legacy mindset from when variable-length fields were not an option. Fixed-length fields are taken for granted. The more you work with folks from Oracle, SQL, etc. background, the more you'll see that fixed-length character data has a more limited role in most databases because fixed length actual values have a much more specific purpose. In other words, don't blame the utility for being accurate.

          Comment


          • #6
            Tips and Techniques: Displaying Dates in Excel

            ** This thread discusses the article: Tips and Techniques: Displaying Dates in Excel **
            I don't think I'm in disagreement with you. I do want an option and there should be one there (on CPYTOIMPF) and on my own CPYTOCSV command. Today neither has the option. Fixed-length fields stem back to 80-column cards, not System/38 (which supported VARLEN fields). But I get your point. This "blank truncation" feature is similar to the "Blank Transparency" option in RPG IV that we debated before IBM introduced RPG IV. They did not want to modify data, and therefore programs would blow up with decimal data errors. I advocated a Blank Transparency option that would simply pass numeric fields containing X'40' through without a DDS, effectively turning them into zero values.

            Comment


            • #7
              Tips and Techniques: Displaying Dates in Excel

              ** This thread discusses the article: Tips and Techniques: Displaying Dates in Excel **
              Try performing a date related calculation on any of the 0001-01-01 dates. =Month(D2) for example returns #VALUE.

              Comment


              • #8
                Tips and Techniques: Displaying Dates in Excel

                ** This thread discusses the article: Tips and Techniques: Displaying Dates in Excel **
                I am trying to upload an excel spreadsheet to i-series. The spreadsheet has few date fields. When I transfer this spreadsheet to i-series it does not transfer the correct dates. It shows some funky numbers insted. I think it converts the date into some numeric value that is different then date. Any resolution?

                Comment


                • #9
                  Tips and Techniques: Displaying Dates in Excel

                  ** This thread discusses the article: Tips and Techniques: Displaying Dates in Excel **
                  As far as I know, Excel stores dates as a lillian number. That is the number of days from a fixed date. If you know what the date is, it is possible to calculate the field back to a true date by using CEExxxx date routines, or your own calculation. Dave

                  Comment


                  • #10
                    Tips and Techniques: Displaying Dates in Excel

                    ** This thread discusses the article: Tips and Techniques: Displaying Dates in Excel **
                    I am trying to upload an excel spreadsheet to i-series. The spreadsheet has few date fields. When I transfer this spreadsheet to i-series it does not transfer the correct dates. It shows some funky numbers insted. I think it converts the date into some numeric value that is different then date. Any resolution?

                    Comment

                    Working...
                    X