CL400 & As400

45 pts.
Tags:
AS/400 administration
CL programming
CL/400
Software application development
I have a query related to CL programing and As400. Acutally am very new to CL, i need to create a CL program(using commands) which needs to call a menu,where i need to provide proper values according to the application, then its inturn need to store it in a database file(either a As400 cobol or directly CL commands need to be used in this case to update a file) Please suggest me with proper picture representation. Thanks

Answer Wiki

Thanks. We'll let you know when a new response is added.

Thank you for visiting ITKE.

We are happy to help you with solving specific IT questions, but need as
much information as possible to do so. Let us know about the problem you
are trying to solve, how you are approaching it and what work you’ve
done so far, and we can help guide you in the right direction.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    If you are new to CL programming, why are you given such a task? Why does it need to be CL? Why not a different language? We can't give answers for homework, though many will help guide if work is shown and a bug needs to be explained. And not many will do someone else's job for free. So, a lot more information needs to be shown. A specific question will need to be asked. What exactly is the 'query' that you need answered? Are you asking for someone to do everything in your question? Or do you just need to know how to start creating a CL program rather than a program in another language? Tom
    125,585 pointsBadges:
    report
  • A6
    Hi Charlie, Yes it just like a homework kind of thing, actually am working on Cobol400,but am personally interested to learn CL400. I tried to update a file through Cobol,its perfectly fine. Its just a screen which contain some information regarding employee details, I know it can be done through CL too. So, i need few suggestion how to proceed thats it, not the entire thing as said by "Tom Liotta"...
    45 pointsBadges:
    report
  • TomLiotta
    COBOL uses the WRITE verb to write data to a screen and the READ verb to read data from the screen. CL uses the SNDF command to write data to the screen and the RCVF command to read. CL has an additional command -- SNDRCVF. This command combines a write with a read. The display record is written, and the CL program waits until the user presses <Enter>. This allows you to code the output and input in a single statement and the intent is clear in the program. However, CL has no native capability to perform direct record output to any device other than a display screen. There is no native command to write data to a database file or to update a record in a database file. So, it's fairly easy to create a display record that lists menu options and have a CL program display the menu and receive the choice from a user. The CL program can even read a record from a database file, display the field values on a screen, let the user type new values and read those values back into the program. But CL has no native way to put those new values into the database file. Usually, CL would be used to 'control' the flow of a job. It might display a menu and process choices. A menu choice might cause the CL to call a COBOL or RPG program that handles any database updates. There are methods that can be used in CL to effect database record maintenance. For example, ILE CL can call essentially all APIs and ILE procedures. The same procedures that are called by C for database I/O can be called by ILE CL. The SQL CLI APIs can be called by ILE CL. But all documentation of those procedures is written for C and it doesn't always translate clearly into CL. Other difficulties like alignment in data structures can make many of the APIs tricky. That's especially true when pointers are included in the structures. In short, CL is relatively easy for handling menu displays, but it can be very advanced if you try to handle database record maintenance. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following