Results 1 to 7 of 7

Thread: Passing HHMMSS to a C BSFN and parsing that out.

  1. #1
    New Member
    Join Date
    Dec 2017
    Posts
    38

    Question Passing HHMMSS to a C BSFN and parsing that out.

    Hello,

    A value is being passed into the C BSFN in the form of HHMMSS... for example 105035. So mnHHMMSSStartTime would equal 105035. How would i be able to parse that into 3 fields like a Data Structure something like....

    typedef Struct {
    MATH_NUMERIC mnHHe; 10
    MATH_NUMERIC mnMMe; 50
    MATH_NUMERIC mnSSe; 35
    } DS?????, *LP?????;


    Any help would be greatly appreciated.....

    Thank you,
    FrankCLT








  2. #2
    Senior Member DSauve's Avatar
    Join Date
    Nov 2000
    Location
    Spokane, WA
    Posts
    1,254
    Pseudo-code for you:

    mnHHe = int(inputvalue/10000)
    temp = inputvalue-mnHHe*10000
    mnMMe = int(temp/100)
    mnSSe = temp-mnMMe*100
    Don Sauve
    Wagstaff, Inc.
    E1 9.2, Win2016, SQL Server 2016, TR 9.2.2.6, WebLogic 12.2.1, BI Publisher

  3. #3
    New Member
    Join Date
    Dec 2017
    Posts
    38
    Thank you....haven't tried it yet....but it seems i have attempted this before but i just cant seem to find the BSFN we've done this with. Am i mistaken about moving the Math_Numeric to a DS with 3 fields within in order to parse?

    Thanks again,
    FrankCLT

  4. #4
    Senior Member DSauve's Avatar
    Join Date
    Nov 2000
    Location
    Spokane, WA
    Posts
    1,254
    If you want to create the DS to hold the three fields, that's fine, but you still are going to have to break it apart mathematically. The DS just by its own nature won't do that for you -- if that's what you're asking.
    Don Sauve
    Wagstaff, Inc.
    E1 9.2, Win2016, SQL Server 2016, TR 9.2.2.6, WebLogic 12.2.1, BI Publisher

  5. #5
    New Member
    Join Date
    Dec 2017
    Posts
    38
    Understood....I will need to experiment with the MathDivide related variables...haven't done that very often.

    Thank you,
    FrankCLT

  6. #6
    Senior Member DSauve's Avatar
    Join Date
    Nov 2000
    Location
    Spokane, WA
    Posts
    1,254
    You may also want to check out the NER N1300600, which does much of what you're looking for.
    Don Sauve
    Wagstaff, Inc.
    E1 9.2, Win2016, SQL Server 2016, TR 9.2.2.6, WebLogic 12.2.1, BI Publisher

  7. #7
    New Member
    Join Date
    Dec 2017
    Posts
    38
    I found B9800188 that i think will work as well. Thanks for all the assistance.

    FrankCLT

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
The legal restrictions and terms of use applicable to this site are available here.
Use of this site signifies your agreement to the terms of use.
JDELIST is NOT affiliated with JD Edwards® & Company, Oracle or Peoplesoft. Contents of this site are neither endorsed nor approved by JD Edwards® & Company and, or Oracle.