Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Human Capital Management
Lawson S3 HR/Payroll/Benefits
Getting a garbage value 20202020202 .02 ,while printing to a CSV
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
LynneB
Past 24 Hours:
1
Prev. 24 Hours:
1
Overall:
5123
People Online:
Visitors:
243
Members:
0
Total:
243
Online Now:
New Topics
Lawson S3 Financials
PO Matched Dollars and Matched Quantity
5/10/2024 6:51 PM
Can anyone share the Lawson calculation to determi
S3 Customization/Development
COBOL CSV file
5/10/2024 2:36 PM
We have a custom Cobol program ZU200 that creates
S3 Systems Administration
Using MFA for Lawson S3 Access
5/8/2024 1:23 PM
Does anyone use Multi Factor Authentication when u
Lawson Landmark
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
IPA/ProcessFlow
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
S3 Customization/Development
Cobol - Extract Current Time
4/24/2024 7:21 PM
How do you extract just the Current System Time in
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1357
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Lawson S3 HR/Payroll/Benefits
Getting a garbage value 20202020202 .02 ,while printing to a CSV
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
Vijay S
Veteran Member
Posts: 174
5/3/2011 10:26 AM
Hello,
I am getting a garbage value 202020202.02 in the amount fields whose debit and credit values value are zeroes, while printing to a CSV file. I have already initialized that field in the CSV but not working. I checked, using display statements, it is picking up the correct values, also calcuating current values but while priniting it prints up 202020202.02 from nowhere. It is occuring for only those account values which have zero credit and debit account.
Any idea ?
Thanks- Vijay
John Henley
Posts: 3352
5/3/2011 12:21 PM
Sounds like the amount field is not being initialized although you say you did. Are you using a CSV workfile or is this a printfile you are saving as CSV?=
Vijay S
Veteran Member
Posts: 174
5/4/2011 2:53 PM
Thanks John, I am using a CSV file, Here i am calculating the Balance sheet amounts period wise for the current fiscal year, For the initial amounts whose balance sheet amounts are null these amounts are coming from nowhere, after that everything is coming out fine.
John Henley
Posts: 3352
5/4/2011 6:51 PM
What you are seeing is an uninitialized (i.e. NULL) amount, so you must not be initializing the CSV record at the beginning of your program.
Sampath S
Basic Member
Posts: 17
5/6/2011 8:20 AM
John is correct Vijay you need to initialize those two amount fields at last just before writing to CSV and only if the account values which have zero credit and debit account. See example below...
Eg: IF (WS-DEBIT-ACCT = 0)
MOVE 0 TO CSV-AMT-FIELD
ELSE
MOVE WS-VALUE TO CSV-AMT-FIELD
END-IF.
--Sam
Vijay S
Veteran Member
Posts: 174
5/6/2011 1:24 PM
Thanks John/Sam, I got it..... I just initialized the CSV records and the begining, it worked fine
!!!!
You are not authorized to post a reply.