Question

Cobol compiler?

Asked by: eugene007

Can the cobol compiler provided by Fujitsu for win xp create cobol programs that are simular to those developed on an AS400?

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
2008-04-18 at 19:01:13ID23335998
Tags

Cobol

,

on a windows xp

Topic

COBOL Programming Language

Participating Experts
2
Points
50
Comments
24

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. Retrieve COBOL Source from AS400
    My client uses a tool retrieve COBOL source with a object. In CL we have RTVCLSRC to retrive the CL source from object created. Please let me know if there is any tool to get the COBOL source from an object. Thanks, Ramesh

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: tliottaPosted on 2008-04-18 at 19:32:04ID: 21390896

eugene007:

Yes and no.

That is, it depends on what you're asking. If the program source code involves standard COBOL structures and avoids vendor and platform extensions, then it's reasonable to expect that it wouldn't take a huge amount of effort to get the program to compile on either system.

But if the program source relies significantly on extensions and system calls to APIs etc., then the two versions of the program might not look much like each other at all.

Either way, the _output_ of the two compilers have almost zero chance of any resemblance at all.

Can you elaborate some on what you're looking for?

Tom

 

by: eugene007Posted on 2008-04-18 at 19:43:28ID: 21390928

Well im trying to learn cobol programming in advance. I will be taking up a job that will expose me with cobol programming and also they will be AS400 and so on. I have no knowledge about cobol, therefore I intend to learn in advance.

 

by: eugene007Posted on 2008-04-18 at 20:47:55ID: 21391100

so will the use of a fujitsu cobol compiler serve my mission to learn?.

 

by: rwardPosted on 2008-04-21 at 07:15:14ID: 21401975

You can apply for a free account on a timeshare IBM iSeries to learn COBOL or any other compiler available on IBM's OS/400.
 
http://www.innovativesys.net/index.php?content=iseriesaccess

 

by: eugene007Posted on 2008-04-21 at 07:25:59ID: 21402111

meaning can I compile the cobol code online?

 

by: eugene007Posted on 2008-04-21 at 07:27:29ID: 21402122

But they no longer accept account creation based on the site information.

 

by: rwardPosted on 2008-04-21 at 07:40:38ID: 21402288

Yes, you can compile iSeries COBOL online.

Guess the free acounts are all gone.   For $10mo you can get an iSeries account here: http://virtual400.com/


 

by: eugene007Posted on 2008-04-21 at 07:52:58ID: 21402457

 

by: tliottaPosted on 2008-04-21 at 12:36:52ID: 21405184

eugene007:

Whether any COBOL compiler will help you will depend on what you will need to learn.

For example, files on an AS/400 generally have a quality that is named "externally-described". This isn't a common quality for files and most COBOL compilers have no way to take advantage of it. This is particularly true for display files, printer files and database files.

If you are expecting to understand file processing, then you should pay speciall attention to how files are described when you use COBOL on an AS/400.

However, if you are expecting to learn how COBOL describes variables in memory, how COBOL statements are specified in the procedural section, how COBOL statements such as PERFORM, INSPECT and others, work in general, then it isn't as important to learn on an AS/400.

Are you needing to learn AS/400s more than COBOL or do you need to learn COBOL more than AS/400s?

If AS/400s are more important for you to learn right now, then you should start on an AS/400. If the COBOL language is more important and you already have experience in other AS/400 languages, then it won't matter as much if you study COBOL on a different system.

Tom

 

by: eugene007Posted on 2008-04-21 at 20:50:24ID: 21408007

I need to learn both. but first cobol.

 

by: eugene007Posted on 2008-04-21 at 20:52:43ID: 21408010

In regards to "http://virtual400.com/"

Is it easy to compile a cobol program?. Im a beginner.

 

by: eugene007Posted on 2008-04-21 at 21:19:01ID: 21408075

also in regards to "http://virtual400.com/" basic feature package I found this:
ILE Cobol
does it indicate any difference to the cobol that will run on a hogan (AS400) system?.

 

by: tliottaPosted on 2008-04-22 at 14:06:55ID: 21415633

eugene007:

Q. In regards to "http://virtual400.com/" Is it easy to compile a cobol program?

A. It's easy for me to compile COBOL programs. I can only guess that virtual400.com provides the standard commands for compiles.

Q. also in regards to "http://virtual400.com/" basic feature package I found this: ILE Cobol. Does it indicate any difference to the cobol that will run on a hogan (AS400) system?.

A. I have no idea what "hogan" means; but if it's an AS/400 or a later system in that series, then the COBOL programming on virtual400.com will work on the "hogan" system as long as the releases are compatible. That is, if virtual400.com runs at V5R4, you won't be able to compile for another system that is older than V5R2. However, you could write and compile source code on virtual400.com that is compatible with earlier releases. In order to use that source code, the source code would need to be FTP'd to the older system and then compiled.

Tom

 

by: eugene007Posted on 2008-04-23 at 20:19:35ID: 21427551

In regards to "http://virtual400.com"

Is the subscription on a monthly basis. In other words can I rent the service for a month?.

Regards.

 

by: tliottaPosted on 2008-04-24 at 11:31:24ID: 21433747

AFAIK, virtual400.c0m is something like $10(US) a month. I think I saw a note that first month is free, but I don't know how valid that is.

Tom

 

by: eugene007Posted on 2008-04-24 at 11:49:45ID: 21433936

I have send them an email. No reply yet.

 

by: eugene007Posted on 2008-04-24 at 21:21:48ID: 21437033

In regards to virtual400.com

1) After your first month, if you do not cancel, we will bill you for the next month of service due.
- This I can understand.

2) You may cancel service at anytime.  However, you still must pay for services due, if any.
- This means alot. "However, you still must pay for services due, if any".

 

by: tliottaPosted on 2008-04-25 at 12:57:37ID: 21442767

I would expect "services due" to cover the remainder of a month when an account is canceled during the first days of the month for example. IIRC, there are also additional facilities that you can request beyond what is provided as a base. If extras have been requested that haven't been billed yet, you're still expected to pay for what you asked for. Just a guess.

Since I've never heard any complaints about the service, I wouldn't be very concerned if I opened an account -- my opinion only.

Tom

 

by: eugene007Posted on 2008-05-12 at 09:33:41ID: 21548390

does virtual400.com allow me to perform file reading operation on a *.dat file?

 

by: tliottaPosted on 2008-05-12 at 12:29:09ID: 21549817

eugene007:

Virtual400.com offers different account types. The "basic" accounts are priced at $9.95US per month. They also offer "developer" accounts at $17.95US per month. Developer accounts appear to allow direct access to *.dat streamfiles.

The description of the Basic accounts looks like *.dat streamfiles would not be _directly_ accessible. However, if you don't mind changing the extension from [.dat] to [.usrspc], I think you could create the same programming.

The descriptions of the accounts at virtual400.com says that Developer accounts are given /home directories but Basic accounts are not. But "user space" objects in libraries can be accessed with the same APIs as normal streamfiles in directories. That generally means that the same programming will work for both.

There will probably be differences between reading a user space in a library as a streamfile and reading actual streamfiles from directories. But I would suggest that you would learn more by learning the differences.

Tom

 

by: eugene007Posted on 2008-05-16 at 03:00:47ID: 21581382

"Basic accounts looks like *.dat streamfiles would not be _directly_ accessible". Does it mean I can't do the following:

SELECT StudentFile ASSIGN TO STUDENTS.DAT.
OPEN INPUT StudentFile.

 

by: tliottaPosted on 2008-05-16 at 12:54:43ID: 21585899

eugene007:

Well, yes and no.

That is, you should be able to SELECT/ASSIGN just as you would in most any standard COBOL.

But, you wouldn't access a .DAT streamfile. You'd access a database file. I.e., it probably wouldn't have an "extension" such as ".DAT". There wouldn't be an extension at all. The object type would be assumed to be a *FILE object because you would create STUDENTS as a *FILE.

So, it would be:

SELECT StudentFile ASSIGN TO STUDENTS.
OPEN INPUT StudentFile

If it was absolutely necessary to access streamfiles in directories rather than database files, you would use the appropriate APIs -- open(), read(), write(), close(), etc.

Tom

 

by: eugene007Posted on 2008-05-18 at 03:47:00ID: 21592223

Your explanation is exactly as the reply I received from virtual400. Now im wondering once I upload my .cob file on the server, how do I compile and run.

 

by: tliottaPosted on 2008-05-20 at 11:31:17ID: 21608858

The exact answer will depend on what virtual400.com allows. In that sense, they are the ones who can answer.

However, generally, you will have a library that you can create objects in. That library should be available to you whenever you signon to a telnet session. You will create a file that can hold your COBOL source statements. Because it will be intended to hold source statements to be edited and compiled, the file will have characteristics that are useful for source statements. The file will be a "source physical file" and will be created with a CRTSRCPF command. The "standard" name of a source file that is expected to hold COBOL source is QLBLSRC for older COBOL and QCBLLESRC for ILE COBOL, but the name can be any valid name.

Once the file exists, it can act as a container and receive records from a server function such as FTP. I don't know how virtual400.com controls in-bound FTP nor what restrictions or requirements they place on transfers.

You COBOL .COB file will be uploaded into a segment of your QCBLSRC (or QCBLLESRC) file that is called a "member". Source files can hold thousands of different members. Each member has a name. Usually, you would name the source member the same as the name of the program or module you want. (Modules can only be created with ILE COBOL. Modules allow you to compile multiple subprograms that you may bind together into executable programs. One module can issue a call to a procedure in a different module as long as they're bound to gether.)

So, create a source file and upload your source into a member. You compile members into programs (or modules).

Usually, developers have a tool (a product) that's known as PDM -- Programming Development Manager. I would expect virtual400.com to make it available by default.

Compiling your source into a program (or module) is easiest through PDM. You can start PDM with the STRPDM command. Three other commands are WRKLIBPDM, WRKOBJPDM and WRKMBRPDM. Those work with lists of libraries, with lists of objects in a library, and lists of members in a source file. The commands can be entered on a command line or accessed through the STRPDM menu. A number of elements of PDM can be customized for your preferences.

WRKMBRPDM is most useful for compiling. When you work with members in a source file, options are made available to you to act on each of the members. In your case, option 14 will compile a member into an executable program and option 15 compiles source into an object module for later binding.

When using PDM to compile, you need to assign a "type" to each of your source members. The type tells PDM what kind of source is being compiled. Source type for older COBOL will be CBL and for ILE COBOL will be CBLLE. The command that is used to compile is chosen based on source type.

To compile a standard old COBOL program, the command is CRTCBLPGM. To compile an ILE COBOL member into an executable program, the command is CRTBNDCBL. To compile an ILE COBOL member into a module, the command is CRTCBLMOD.

If you begin to create modules, you would eventually bind some of them together. To bind modules into an executable program, the command is CRTPGM. The modules must exist first. The CRTBNDCBL command combines CRTCBLMOD and CRTPGM into a single command that compiles the module and then creates a program from that single module.

I thought virtual400.com advertised V5R3. If so, the V5R3 manuals are online. For old COBOL:

http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/rzahg/rzahgcobolopm.htm

For ILE COBOL:

http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/rzahg/rzahgcobolile.htm

Those links provide .PDFs for downloading. The User's Guides discuss elements of creating source files, editing members, compiling them and other parts.

Obviously, a full class is a bit beyond the scope of an EE question. But that should be enough to get you moving.

Tom

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...