Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Financial Management
Lawson S3 Financials
Read a flat file.
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
NonnieBear1776
Past 24 Hours:
0
Prev. 24 Hours:
1
Overall:
5161
People Online:
Visitors:
277
Members:
0
Total:
277
Online Now:
New Topics
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
1348
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 Financials
Read a flat file.
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
Kishan
Basic Member
Posts: 6
7/15/2009 11:51 AM
IS IT POSSIBLE TO READ A UNIX FILE (CREATED BY THE USER WTH HIS/HER OWN DATA) FROM A LAWSON PROGRAM?
Gary Davies
Veteran Member
Posts: 248
7/15/2009 11:56 AM
Yes you can, either a straight flat file or CSV, there are API's in the Lawson COBOL to handle it. The only caveat is that the files have to exist (or the directory dynamically linked to) the application server.
Selva
Basic Member
Posts: 8
7/15/2009 12:58 PM
you can also use the below API to find out whether file exists or not.
900-FILEEXISTS
This routine will check on the existence of an external UNIX file name. An example:
MOVE WS-RESTART-FILENAMEA TO SYSCMD-FILENAME.
PERFORM 900-FILEEXISTS.
IF (SYSCMD-ERROR NOT = ZEROES)
MOVE WS-FALSE TO PROGRAM-RESTARTING
END-IF.
The full path name must be used to populate the SYSCMD-FILENAME variable. If SYSCMD-ERROR is zeroes the file exists.
Kishan
Basic Member
Posts: 6
7/16/2009 5:41 AM
Thank you for your inputs
You are not authorized to post a reply.