Question

I need some assistant on AS/400 Programming

Asked by: jslayton01

Hello there-

I want to create a database using these fields below...

1. Warrants issued

2. Drivers License # or plate #

3. Previous convictions

4. Name, Last name, Middle name,

5. Phone number

6. Registered Owner..

And etc....

Also- how can I create if I want to find someones drivers information by querying by their drivers license number or by last name? How can I do that with the AS/400? Do I need to know COBOL? For example: Let say I wanted to lookup the REGISTERED OWNER by entering the Drivers License Number of a vehicle...How can I create the database for that purpose or the other way around..lets say by entering the VIN Number of that vehicle?

Most important question here I would like to ask...What programming application or system does the DMV use to rpint out those Registration papers on what I keep in the glove department in my car? Do they use the RS/6000, or the AS/400 for those Registration papers?

And another thing....

They also want me to design a database on the AS/400 by entering someones credit card number and by creating a payment invoices using the AS/400...

Can anyone please guide me to the right direction? What language do I need to have? Personally, I would like to see some screenshots of this, on how this database is done or created using what programming languages and so forth...Thanks.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-02-23 at 07:14:48ID21748634
Tags

cobol

,

example

Topic

Programming for iSeries / AS400

Participating Experts
5
Points
500
Comments
11

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. I need to AS/400 simulater for windows
    I'm now training for AS/400 server and need to any programs to run it on windows to simulate AS/400 envirunment

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: daveslaterPosted on 2006-02-23 at 07:47:57ID: 16029888

Hi
the 400 has its own native database language called DDS. This is how you program a database.
You can also use SQL.

Data is held in physical files but any number of indexes can be generated to get data out by name address zip/post code car reg etc...

use STRSQL

Dave

 

by: daveslaterPosted on 2006-02-23 at 07:49:29ID: 16029913

ps
the 400 also has may languages as standard. RPGLE Cobol, C, JAVA

I don't not know what systems this company - but a lot of companies use 400's because of the reliability and power of the database.

dave

 

by: daveslaterPosted on 2006-02-23 at 07:51:11ID: 16029936

pps
here is a link that shows a simple AS/400 application with a native DDS database

http://www.experts-exchange.com/Programming/Programming_Platforms/AS400/Q_20734002.html

Dave

 

by: jslayton01Posted on 2006-02-23 at 09:02:32ID: 16030822

To answer my question, what does the DMV use to print out the Registration vehicle forms that we keep in our cars? Is that printed out from the AS/400 servers?

 

by: ShadowProgrammerPosted on 2006-02-23 at 10:21:06ID: 16031556

Only the DMV (or someone who works there) can tell you what they use to produce documents.

Just because they have an AS400 does not mean they print direct from the AS400 - they could transfer the data to another machine for printing... they could even have a third party to do the printing/mailing... where they send or transmit a data file containing what is to be printed.

My personal viewpoint is you should use DDS and RPG on the AS400 ....
but I am a "dinosaur" on the midrange family
AND some people like COBOL... which I think is because they are "dinosaurs" from another planet, this planet is sometimes referred to as "mainframe"
The more modern people are moving to C and Java and websphere...  and that is all over my head !!!

Tony.

 

by: daveslaterPosted on 2006-02-23 at 11:21:53ID: 16032153

Hi Tony
I read an artical that some websphere / Java guys are asking for some CGI scripts to be written in RPG - it's so much faster.


There is life in the old code yet - plus it is so much easier to read. Old legacy (3 years plus) java code is unmaintainable and oftern needs re-writing for simple changes.

Dave

 

by: tliottaPosted on 2006-02-23 at 12:12:38ID: 16032686

jslayton01:

Tony and Dave have given perfectly valid answers (though I suspect there might have been some grins here and there).

DDS (Data Definition Specifications) is the most common way to define data storage and input/output specifications. It's a definition language that can define physical tables, logical views and indexes, printer forms and display screen layouts. The result is always a compiled object of type *FILE. The *FILE object can be referenced by languages such as COBOL, RPG or C and carries all necessary field and layout info.

It isn't necessary to code any such info into a program; the definitions are inserted by the compilers simply by referencing the name of the *FILE in the source of the program. This is called an "externally-described file". If done well, this can allow you to make changes to the *FILE without needing to make changes to the program. You define the *FILE once, and you might have a hundred programs that use it.

SQL is an alternative way to describe a TABLE, VIEW or INDEX, pretty much as you would on any other SQL database. All programming languages have the ability to include "embedded" SQL statements to manipulate SQL databases.

Both DDS and SQL create files that can be used by the other. That is, if you use DDS to create a physical file named MYCARS, then you can use SELECT * FROM MYCARS to query the file. In many ways, the two can be interchangeable, although there are necessarily details that are unique to each.

If you have a reasonably recent version of OS/400 available and any of the language compilers is present, then all of the language compilers can be used. The license covers 'programming languages and tools' rather than just a single language such as COBOL. There's no way for us to know if a particular language has been loaded until you tell us.

If you are really starting work on an "AS/400", then it's _possible_ that you don't have a recent version of OS/400. AS/400 is a brand name that hasn't actually been available from IBM for a couple years. In fact, I'm not sure that any "AS/400" model can even run the latest OS/400 any more.

AS/400s have been superseded by iSeries systems. OS/400 has been in Version 5 for a few years. The latest isn't even OS/400 anymore, but is officially i5/OS Version 5 Release 4. Part of the reason the OS name changed was to indicate the end of phasing out AS/400.

But almost everyone continues saying "AS/400" and "OS/400". Just be aware that there are in fact differences.

In general, every high-level language has all the capabilities of every other HLL. For example, a COBOL program can call the printf() C runtime function just as C can and C can read and write files just as RPAG can, etc. Even the OS/400 Control Language which is named CL can do these things (particularly in the latest release where even pointers can be declared in CL).

All languages can be used to create modules that can be bound with modules from any of the other languages to create an executeable program. If you're comfortable with C or COBOL, then perhaps those are the languages you should use. If you mainly write in RPG but you know that some calculation function could be done much nicer in C, then write the mainline in RPG and call the C procedure after binding it in. Or write the whole thing in RPG. Your choice. (Or the choice of whomever sets standards for the shop.)

As far as printing goes, maybe it's done directly through an AS/400 to a direct-attach printer, maybe it's formatted on the AS/400 and sent to a printer out on the LAN, maybe it's formatted on the AS/400 and sent across the internet to some remote Unix print queue. Or maybe some PC does remote queries of the DB2 database on the AS/400 and the forms are printed on a PC printer.

Only the DMV knows. The point is that it's perfectly capable almost any way you can imagine that you'd _like_ to do it. I've done similar for government documents in all those ways.

In order to create the database you described, you might use interactive SQL through a terminal or terminal emulation session and enter SQL CREATE TABLE statements and others. You might use a GUI on a Windows PC such as iSeries Navigator and use the included tools for creating databases on remote AS/400s. It depends on what's made available for you and what configuration has been done to the network and the AS/400. Technically, if you have something like SQL Server and create a remote connection to the AS/400 DB2 database manager, you could even use SQL Server to pass SQL statements across the network.

We'll need to know various basics about the kind of AS/400 you have, the level of the operating system, the tools that have been installed on it, the network and the ways you'll be allowed to connect, in order to give really useful details.

A starting point would be a visual description of what you see unless you know various details.

Tom

 

by: CorrPosted on 2006-02-24 at 23:58:57ID: 16044670

Sequel Viewpoint designed by www.ASC-Iseries.com is a great tool for custom reports. Not sure why you want to try and duplicate this info nor do I want to know, but a good place to retrieve info is www.accurint.com at least in Florida anyway.

Regards,

John

 

by: Dushan911Posted on 2006-04-24 at 23:36:47ID: 16532009

Sometimes following solution might help for you

http://www.experts-exchange.com/Programming/Programming_Platforms/AS400/Q_20734002.html

BR Dushan

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...