Tokelau Becomes First Country To Go 100% Solar

Jess Lee of Stuff has a really interesting article:
http://www.stuff.co.nz/world/south-pacific/7408149/Tokelau-to-shed-diesel-dependence

Lead contractor Powersmart Solar is helping Tokelau replace its diesel generators – which burn about 200 litres of fuel daily – with 4032 solar panels, 392 inverters and 1344 batteries.

Some countries/politicians just get it – they just get it. There are far better ways to generate electricity than to burn fossil fuel. 2 great big thumbs up from me. 🙂

Regards,
Roger Lacroix
Capitalware Inc.

General Comments Off on Tokelau Becomes First Country To Go 100% Solar

Judge Rules Oracle Must Continue Porting Software To Itanium

ComputerWorld writes about the ruling:
http://www.computerworld.com.au/article/432432/judge_sides_hp_rules_oracle_must_continue_porting_software_itanium/

Regards,
Roger Lacroix
Capitalware Inc.

Operating Systems, Unix Comments Off on Judge Rules Oracle Must Continue Porting Software To Itanium

Get Fake Credit Card Numbers for Testing Purposes

Working in the financial industry, sometimes you need fake data (i.e. names, credit cards, etc..) for testing purposes. Over 10 years ago, I came across a Windows program called: Credit Card Verificator Engine. It has the ability to generate credit card numbers. I posted it to my web site at:
https://www.capitalware.com/pc_win_general.html

I now have come across a web site that is extremely robust in generating fake credit card numbers. If you need fake credit numbers for your test data then have a look at:
http://www.getcreditcardnumbers.com/

Regards,
Roger Lacroix
Capitalware Inc.

General Comments Off on Get Fake Credit Card Numbers for Testing Purposes

JBoss and Strange Looking Characters in the Message Data

Here’s an interesting issue that Lawrence Coombs had regarding porting a J2EE application from WAS to JBoss:

We ported an applictaion from WAS to jboss 5.1. It interfaces with a mainframe CICS transcation that uses MQ 7.x.

Neither the distributed nor the Z/OS queue manager changed. The CCSID of the Z/OS queue manager is 500 (did not change), the CCSID of the AIX queue manager is 819. The application did not change.

The data in question is coming from the mainframe. Any idea where to start looking?

D11¦00612730¦2012-07-29¦8807¦2012-07-30¦ ¦2012-07-24¦2012-07-25

This is the extra character at the end of each field: Â except the last.

The solution, as reported by Lawrence Coombs, was to use either of the following JVM environment variables.

-Dfile.encoding=ISO8859-1

or

-Dcom.ibm.msg.client.wmq.receiveConversionCCSID=1208

Hopefully, this posting will help other JBoss users in the future.

Regards,
Roger Lacroix
Capitalware Inc.

IBM MQ, Java, JMS Comments Off on JBoss and Strange Looking Characters in the Message Data

SupportPac MO71 v7.5.0 Released

Paul Clarke of IBM has released version 7.5.0 of SupportPac MO71.
http://www-01.ibm.com/support/docview.wss?uid=swg24000142

    Changes:

  • Added MQ 7.5 Support
  • Attribute monitoring.
  • Graphing.
  • Predefined dialog groups.

SupportPac MO71 provides a simple, easy to configure GUI interface to administer WebSphere MQ (MQSeries) Queue Managers. It consists of a single program which sends PCF or MQSC messages to a local or remote Queue Manager and displays the output from the command server in dialogs. All Queue Managers that have a command server can be administered, including z/OS.

Regards,
Roger Lacroix
Capitalware Inc.

IBM MQ, Windows Comments Off on SupportPac MO71 v7.5.0 Released

How to Clear a MQ Queue from a Script or Program

Have you ever wanted to clear a MQ queue? A quick and easy way to do it is to use runmqsc’s CLEAR QLOCAL command. This method works very well as long as no application has the local queue opened for input.

Method #1:

If you need to clear a queue on Linux, Unix, Windows or IBM i (OS/400) then start runmqsc and issue the following MQSC command:

clear ql(TEST.Q.NAME)

Method #2:

On IBM i (OS/400), the user can also use the CLRMQMQ command. To issue the CLRMQMQ command, type the following on the 5250 terminal (use your queue manager and queue names):

CLRMQMQ QNAME(TEST.Q.NAME) MQMNAME(QMgrName)

Method #3:

For Unix / Linux, the following simple shell script will work to clear a queue of a local queue manager:

#!/bin/sh
#
# Clear a MQ queue (clearqueue.sh)
#
# Parameters:
#  $1=Queue manager
#  $2=Queue name
#

if [ $# -ne 2 ] ; then
#  Tell the user what they did wrong!
   echo "Usage:"
   echo "   clearqueue.sh QMgrName QueueName"
   exit;
fi

echo "clear qlocal($2)" | runmqsc $1

exit

To run the Unix/Linux script, open a shell prompt and type the following (use your queue manager and queue names):

clearqueue.sh QMgrName QueueName

Method #4:

For Windows, the following simple batch file will work to clear a queue of a local queue manager:

@echo off

REM Clear a MQ queue (clearqueue.bat)

REM Parameters:
REM  %1=Queue manager
REM  %2=Queue name

if %1. == .  goto help
if %2. == .  goto help

echo clear qlocal(%2) | runmqsc %1
goto theend

rem Tell the user what they did wrong!
:help
echo Usage:
echo    clearqueue.bat QMgrName QueueName
:theend

To run the Windows batch script, open a command prompt and type the following (use your queue manager and queue names):

clearqueue.bat QMgrName QueueName

Method #5:

You can also download and compile the ClearQ program that is listed on the following web page:
https://www.capitalware.com/mq_code_c.html

Again, this method works very well as long as no application has the queue opened for input.

To run the program on Linux, Unix, Windows, OS/400 or z/OS, open a prompt and type the following (use your queue manager and queue names):

clearq QueueName QMgrName

Method #6:

If you need to clear a queue when another application is reading from the queue (opened for input) then you can download and compile the EmptyQ program that is listed on the following web page:
https://www.capitalware.com/mq_code_java.html

To run the program on Linux, Unix, Windows, IBM i (OS/400) or z/OS, open a prompt and type the following (use your queue manager and queue names):

java EmptyQ -m QMgrName -h hostname -p port## -c ChannelName -q QueueName

Method #7:

If you need to clear a queue on z/OS then the following JCL will work (use your queue manager and queue names):

//STEP01   EXEC PGM=CSQUTIL,
//            PARM='QMGR',
//            COND=(0,LT)
//STEPLIB  DD DISP=SHR,DSN=HLQ.SCSQANLE
//         DD DISP=SHR,DSN=HLQ.SCSQAUTH
//SYSIN    DD *
COMMAND
//CSQUCMD  DD *
CLEAR QLOCAL(TEST.Q.NAME)
/*
//SYSPRINT DD SYSOUT=*

I hope this posting helps with your message management issues.

Regards,
Roger Lacroix
Capitalware Inc.

IBM i (OS/400), IBM MQ, Java, Linux, macOS (Mac OS X), Open Source, Programming, Unix, Windows, z/OS 6 Comments

Nokia and RIM – Who will be first?

Is it just me, or is Nokia and RIM in a race to be the first ones to be gone! You would think that each company has the Three Stooges running each company. Wouldn’t Helen Keller (if she were a live) do a better job understanding the mobile market and running either or both companies than the current management!

Blackberry 10 (QNX) is over 2 years delayed and then RIM make this announcement when they gave their dismal/horrible earning report:
http://www.nytimes.com/2012/06/29/technology/blackberry-maker-rim-posts-518-million-loss.html

This means that there will be 2 MORE disastrous quarterly earnings reports (September & December) from RIM before the new Blackberry 10 is released. They will completely miss both 2012 back-to-school and holiday seasons.

Now Nokia released their horrible quarterly earnings report:
http://online.wsj.com/article_email/SB10001424052702304388004577531002591315494-lMyQjAxMTAyMDEwODExNDgyWj.html

Nokia will have AT LEAST one more horrible earnings report (October) and if they do not launch a phone with Windows Phone 8 before Christmas then it will be 2 horrible earnings reports.

Both companies are burning cash to stay alive while their sales are falling off a cliff. This is the strangest “dual” death spiral that I have ever seen.

I am pretty sure that both Apple (iOS) and Android makers (i.e. Samsung, Motorola, etc.) are smiling with glee and rubbing their hands together for all the money they are making and will be making.

Regards,
Roger Lacroix
Capitalware Inc.

Mobile Comments Off on Nokia and RIM – Who will be first?

Raspbian-based SD card image released

The Raspberry Pi foundation has announced the release of the first SD card image based on the Raspbian distribution:
http://www.raspberrypi.org/archives/1605

Regards,
Roger Lacroix
Capitalware Inc.

Linux, Open Source, Raspberry Pi Comments Off on Raspbian-based SD card image released

WMQ v7 for z/OS and IMS/CICS

IBM has the following technical bulletin:
http://www.ibm.com/support/docview.wss?uid=swg21472819

Problem(Abstract)

An IMS Bridge (OTMA) or CICS Bridge application that worked with WebSphere MQ for z/OS V6.0.0 now fails with V7.0.0 or V7.0.1.

Symptom

Symptoms may include

MQRC 2148 MQRC_IIH_ERROR
MQRC 2142 MQRC_HEADER_ERROR
MQRC 2112 MQRC_SOURCE_INTEGER_ENC_ERROR

DFHMQ0745 E CKBP nnnnn Unable to put message to reply queue. MQRC=2112.

——————-

This is going to cause a lot of problems for a lot of people.

Regards,
Roger Lacroix
Capitalware Inc.

IBM MQ, z/OS Comments Off on WMQ v7 for z/OS and IMS/CICS

jgc.org: Some things I’ve learnt about programming

John Graham-Cumming has some interesting thoughts on programming that I really like:
http://blog.jgc.org/2012/07/some-things-ive-learnt-about.html

Regards,
Roger Lacroix
Capitalware Inc.

Education, Programming Comments Off on jgc.org: Some things I’ve learnt about programming