Mainframe Languages

349

Solutions

422

Contributors

There are many computer languages, and they have been evolving from machine language into a more natural way of writing. Languages are generally classified into machine language (direct machine code); assembly (using mnemonics to present the instructions to be translated later into machine language by an assembly program); procedural languages, also known as high-level languages (HLL) (Pascal, FORTRAN, Algol, JCL, COBOL, REXX, PL/I, Basic, and C are common), along with several other types. Mainframe programming is largely done in the procedural languages.

Share tech news, updates, or what's on your mind.

Sign up to Post

In discussions about what programming languages to learn, the usual suspects are generally things like Java, C++, PHP, Python, & JavaScript. Usually no one mentions a classic like COBOL, but perhaps it's time to rethink that?

https://thenextweb.com/finance/2017/04/10/ancient-programming-language-cobol-can-make-you-bank-literally/
1
 
LVL 4

Expert Comment

by:Gene Richardson
Cobol and Fortran were my first programming languages and helped make my decision to switch my college major from Electrical Engineering to Computer Science.  Some of the companies I have worked for in the last ten years still have large implementations of Cobol code.  Based upon the article, I guess I may still have some work I can do when I start collecting that Social Security check :).
1
 
LVL 27

Expert Comment

by:tliotta
COBOL was fundamental to my first professional programming job back in the early 1970s. This struck me as interesting while thinking how good my pay was in those years with COBOL, and now the pay is becoming even better, perhaps even improving for a couple decades to come. The 'pay' curve could be fun to work out by the time COBOL is gone.

As with most languages, well written COBOL might not be the most common found, and poorly written COBOL is probably easy to find. I'm pretty sure I'd feel a little embarrassed to analyze some programs I wrote 40 years ago. I know that COBOL modules that I've written in the past decade is much better quality. It hasn't been a major part of my programming work, but there've been a couple specific projects where COBOL simply did the job best. (I'm not sure how many different languages I've needed to learn in my career.)

Makes me smile to think that in a few years there might be COBOL code of mine that's still active over a half-century span.
1
[Webinar] How Hackers Steal Your Credentials
LVL 8
[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Hi
I have been handed a legacy project that has being abandoned by the original designer as he is retiring and wants no more to do with it so i am inheriting the system it ws designed some 22 years ago so its a system that looks like a db3 dos system.
i have spoken to him once and he said that the db is written in dbl and that the program is written in a mixture of cobol and fortran so he said.
the whole lots sits on a unix box which happens to be un-seeable on via windows explorer,
now i do not want to play too much on the network i am not a unix boffin, but do have access to the back ups which i am guessing hold the DBL files which hold the data files that i wish to access.
********************  what i need
so what i need to do, is to access the dbl tables in the unix section or off the backups and get access to these tables and then extract the information out of them so that i can rebuild the system that i will be building, but first i need to see the tables and then go from there.
so not being a unix person you can see what  i need
i know that dbl is supposed to to be short for data base language but thats it not sure that the guy was not leading e down the garden path as he has the system hidden from the client for the last couple of decades with the support guy the only one that has the remote dial in for the network so
what do you think can you lend me in the right direction
thanks for any help in advance
0
Hi Experts,

I have to create an iSeries webservcie that receive JSON data and store that on the IFS.
after that I gave to process the data into some files.

How can I write the REST service received data into an IFS file (with a unique filename of course)
Please can I receive an example if possible?

Thanks
0
I have an access application I inherited that uses the WdMfDsp.ocx control to get data from Rumba.
After upgrading to windows 7 we now are getting an error message.

"A license is not available at this time. general license error occurred -2"
 
followed by another message

"The operation of the Objectx Mainframe display control object failed.
The OLE server may not be registered."

I'm new to using this type of work, any suggestions would be appreciated.
0
Have got some links/guides from BTan previously for OWASP & Java.

Q1:
I'll now need secure programming guides/standards for Cobol (the ones used in IBM mainframes/AS400)
esp those with good practices like:
a) proper input validation (eg: to mitigate against XSS & injections)
b) avoid hardcoding passwords &  IP addresses in the codes
c) enforcing session timeouts (session idle is forced to logout)
d) exceptions handling (so that under exceptions, the program doesn't bomb out, possibly to OS)
e) ...

Q2:
For .Net & Java, we used Fortify to scan the codes;  is there equivalent scannners for Cobol?


========================  Past links I got from EE BTan =====================================

https://www.sans.org/security-resources/posters/securing-web-application-technologies-swat-2014-60

https://www.owasp.org/index.php/OWASP_Java_Table_of_Contents#J2EE_Security_for_Developers

 The most common is use of OWASP recommended ESAPI in various lang for secure coding adopted by organisation practices https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API
0
I am trying to build a DDL statement off a COBOL program layout.  I have never used COBOL syntax before.

I AM NOT SURE WHAT PIC X(26) , PIC XX OR PIC X MEAN?
Example:
Cobol layout
TIMESTAMP                  PIC X(26).                        
CPIS_CMPY_CDE              PIC XX.                        
DCH_CAPSIL_CMPY_CDE            PIC X  

New ddl statement in Teradata
TIMESTAMP                  char(26)                        
CPIS_CMPY_CDE           ?                
DCH_CAPSIL_CMPY_CDE            ?

i HAVE INCLUDE A TEXT FILE OF THE COBOL LAYOUT I TRYING TO CREATE DDL STATEMENT.
CAPSIL-MA-Layout-Mar10.txt
0
What's wrong with this Fortran90 program? I can't get it to compile...
HEtoGrib2.f90.txt
0
Hi Experts,

I have to fill a field in a displayfile, by fieldname
When I put the cursor on a field and press one Function key, I have to store some data from that field.
When I put the cursor on a field and press another Function key, I have to put some data into that field.

After pressing the Fxx key I know the fieldname and screenposition, but I need at least the position in the screenbuffer.


Thanks
0
I have a list of Mainframe libraries -- and I have to identify which ones are in PDSE format.

Is there a command that I can use in batch that will show this?

I have procedures to run LDR and LU commands in batch -- and hoping to find a command to identify library types.

Thanks for the help,
je
0
Hi ,

What is sync sort means , is it a utility like grep,awk ?

Please provide me basic details on how to work with syncsort .

Thanks
0
Free Tool: Site Down Detector
LVL 8
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Hello,

I've heard many times that Fortran is a programming language still usefull, even so it is more than fifty years old. Also I 've read that it was mainly applied to IBM mainframes for bank and finance businesses,

Is it still in that way? Is it only used for banks and for programming mainframes?
0
Hi I need to translate leagacy Pl/I code to Java. The legacy code has files as input and output. How do i convert it into object oriented concepts? How do i create class and How do i handle them?
0
Hi,

Please help me, there is a Legacy application built on cobol, Is there is any connector which can
help us to connect cobol client application getting access to Java application...

I googled it, I saw J2ee connector ?  some of my friend inform me to go for J2ee connector, is this right approach to access java application... if any body has come across these kind of issues, Please let me know

Thanks
0
Hi,
I get the problem to the script below. why?

SELECT * FROM TAB1 where varchar($postingdate)='20150217'
Column $POSTINGDATE not in specified tables.             

Open in new window

0
Hi Experts,

I am generating a feed file for downstream application where one of the data is of type S9(15)V99. The downstream application is Mainframe based. I need to understand how to represent 5000.00 in the type S9(15)V99?

Best Regards,

Prashant
0
Hi guys: Can any one please describe that where we use this in mainframe programming?

Thanks
0
Hi guys: Can any one please help me in that error?  Thanks
sfl.png
pf.txt
sflerrs.txt
rpgcode.txt
0
Hi guys: Can any one please help me in that error?  Thanks
spoolfile.txt
rpg.txt
qddssrc.png
pffile.png
0
Hi guys: Can any one please help me in that syntax error? Thanks
spoolfile.txt
rpg.txt
pffile.png
qddssrc.png
0
Enroll in June's Course of the Month
LVL 8
Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Hi guys: Can any one please help me in that syntax error?  Thanks
screenshot.png
0
When I enter new customer number it wont go to the next screen, Can any one please help me out?

Thanks
screenshot.png
code.txt
0
Hi guys: Can any one please tell me how to fix that error?  Thanks
screenshot.png
code.txt
0
Can any please help me in that error?  Thanks
screenshot.png
screenshot2.png
rpgcode.txt
0
Hi guys: Can any one please tell me how to know on which line the error is when checking at the bottom screen?

Thanks
screenshot.png
rpgcode.txt
0
I am not understanding this HI, LO or EQ. I just guess its HI. Can any one please help me out?

Thanks
screenshot.png
0

Mainframe Languages

349

Solutions

422

Contributors

There are many computer languages, and they have been evolving from machine language into a more natural way of writing. Languages are generally classified into machine language (direct machine code); assembly (using mnemonics to present the instructions to be translated later into machine language by an assembly program); procedural languages, also known as high-level languages (HLL) (Pascal, FORTRAN, Algol, JCL, COBOL, REXX, PL/I, Basic, and C are common), along with several other types. Mainframe programming is largely done in the procedural languages.

Top Experts In
Mainframe Languages
<
Monthly
>

No Top Experts for this time period. Answer questions to earn the title!