Author Archives: Techkhoj

How to Embed a Twitter Feed in a Website

Twitter has excellent facility using which you can easily embed twitter feed into your website, that feed can be from your own tweets or any other channels or can be from any HASHTAGS or can be from a search in the twitter. Follow below steps to embed any feeds from twitter: Sign in to Twitter account. Go to your settings ...

Read More »

how to create rexx tool to automate compile cobol program

Here we will discuss how to create REXX tool to automate compile COBOL program. First you need to have your compile jcl ready like below //&JOBNM JOB 1,'COMPILE',CLASS=X,MSGCLASS=X,NOTIFY=&USR //* //COMPILE EXEC TCOBB3L, //             DIVID=DS, //             NAME=&MEM //* //COB.SYSIN   DD DSN=&PATH, //           DISP=SHR   In above JCL bold line can be change as per our system configuration we have put & ...

Read More »

How to validate date using DB2 database in COBOL

Sometimes we face situations where we need to validate a date either that is a valid date or an invalid or garbage date like 2014-35-32. We can easily do that using simple database query Below query will pass the date which needs to be validated to the SYSIBM.SYSDUMMY1 through DATE function and it will return zero if it is a ...

Read More »

How to re-enable task manager disabled by Virus

Virus and Trojans are most common things in today’s internet world, that may be a tiny disturbing virus or a dangerous Trojans. And maximum time we can recognize them by seeing the Process tab in task manager, there must be a unwanted or unknown process running. So maximum Intelligent viruses’ first task is to disable the task manager and make the ...

Read More »

Evaluate in COBOL

Like other programming languages in COBOL also we have EVALUATE. It is similar like SELECT in C or PHP. We can avoid multiple IF or nested IF (which are very confusing) using EVALUATE. Example: EVALUATE variable1 WHEN 1 WHEN 3 MOVE 'LOAN'      TO variable2 WHEN 2 MOVE 'CREDIT’ TO variable2 WHEN 4 MOVE 'DEBIT’ TO variable2 OTHER MOVE ‘INVALID’  TO ...

Read More »

How to share a link on Facebook page or timeline

We all know how to share pictures and status on Facebook, below article will tell you how to share a link in Facebook. There are two ways to do this. Go to this link. https://www.facebook.com/share_options.php You will see below page: In the above page drag the “share on Facebook” to your bookmark bar. Now any article (link) you want to ...

Read More »

Basic of REXX

REXX stands for REstructured eXtended eXecutor.  Rexx is basically used as a scripting and macro language it was developed  by Mike Cowlishaw in the year 1979, currently who is a visiting professor at the University of Warwick. REXX was first implemented in assembly language to replace the languages EXEC and EXEC-2. Rexx is a free-form language. Unlike COBOL, a Rexx program does not have a ...

Read More »

COBOL Structure and Divisions

Before start with programming let’s start with the structure of the COBOL program. How the COBOL program should be written. All COBOL program consists of the following hierarchical structure.   Division is a block of code usually contains one or more sections. It starts where the division name is encountered and it ends with the beginning of the next division ...

Read More »