Blogs

Life with Bailey the English Springer Spaniel

  • Posted on: 10 September 2013
  • By: NickLitten
Bailey Version 2 - happy lunatic springer spaniel puppy only a few weeks old

This is Bailey Version 2.0

bailey the springer spaniel after his first haircut

He's my wing man and constant companion. He never nags, never complains and is always thrilled to see me whether I have left him alone for a minute or for a day. To test if your dog loves you more than your wife - trying locking your pet and your wife in travel cage, in the hold of a plane, for 6 hours. See which one is more pleased to see you when you land. ;)

Bailey has flown around the USA with me and should have his own air-miles account. He was my car companion on our cross country drive from Charleston (SC) to Las Vegas, then a year later up to San Francisco and finally back to Charleston, SC. Six months later we cruised over to Texas for a few months. in early 2014 we moved and settled in Sunny Southern California. Springers are active dogs and I should have a gold card membership at various doggie day care facilities, where Bailey spends his days during  many business hours if I'm at work for long periods. He's friendly and loves to chase balls, squirrels and just about anything that scampers, runs or slithers.

How do I check for numeric values using RPGLE?

  • Posted on: 9 September 2013
  • By: NickLitten

IBM RPG is a lovely language.

RPGLE (as the latest version is known) has got some heritage. Some might say its an old language, but I say it's kept young by its constantly evolving syntax!

The current version of RPGLE (IBM i V7R1 at time of writing this) has free form code, multitudes of built in functions and handles big system database crunching with as much ease as it handles little web page servlets. RPG's evolved over 20+ years from an archaic and mystical thing bound by the rules of something called 'the logic cycle' into the modern power language for all IBM i Systems everywhere.

Personally, I find a few of the older functions still a bit annoying and wish there was a nicer way of handling them.

In this case, it's time to convict RPGLE's ability of checking data variables to see if they contain numeric or alphanumeric variables:

PDM user defined options

  • Posted on: 27 August 2013
  • By: NickLitten



Brief: PDM's user-defined options can enhance your productivity by reducing the need to key frequently used commands. This article offers some practical tips on how to implement user-defined options into your programming environment.

PDM's predefined options allow you to perform various tasks against libraries, objects, and members. But did you know that you can create your own user- defined options to execute almost any command including your own? You can also optionally, have PDM fill in or prompt command parameters.

User-defined options save you from having to enter frequently used commands. For example, if you often key the Work with Spooled Files (WRKSPLF) command, you could save time by creating a user-defined option called SP. Then, when you need to access your spooled files, you can use option SP. In this article, I'll give you some tips on configuring and using PDM's user-defined options. For additional information on using PDM, see "Getting the Most Out of PDM," MC, July 1992.

Creating an Option File

PDM user defined options

  • Posted on: 27 August 2013
  • By: NickLitten

Brief: PDM's user-defined options can enhance your productivity by reducing the need to key frequently used commands. This article offers some practical tips on how to implement user-defined options into your programming environment.

PDM's predefined options allow you to perform various tasks against libraries, objects, and members. But did you know that you can create your own user- defined options to execute almost any command including your own? You can also optionally, have PDM fill in or prompt command parameters.

User-defined options save you from having to enter frequently used commands. For example, if you often key the Work with Spooled Files (WRKSPLF) command, you could save time by creating a user-defined option called SP. Then, when you need to access your spooled files, you can use option SP. In this article, I'll give you some tips on configuring and using PDM's user-defined options. For additional information on using PDM, see "Getting the Most Out of PDM," MC, July 1992.

Creating an Option File

IBM. IFS. DLS. DOS. WTF?

  • Posted on: 26 August 2013
  • By: NickLitten

So, an old colleague of mine just asked me:

Going to need your help here, it occurred to me that we don't have a plan for backing up those Vendor Schedules we turned into pdf's on the DLS a while back. QDLS is easy but IFS, well same thing really without the restricted dos naming but finding them is a bit more humpty than finding your folder in the QDLS. 

Can you either help me on what command I can use on IBMi to review folders with vendor looking documents in them or as I should have access to the network, any clues on a path that should work ?

Here is my email reply - remember this is all very much IMHO - Neatly copy/pasted into this blog in case it helps anyone else out there in IBM-i-land:

IBM i Emails with IFS attachments from RPG and CL using SNDSMTPEMM

  • Posted on: 22 August 2013
  • By: NickLitten
princesses send email too

Life as a IBM i Software Developer is fun, but life as an AS400 software maintenance programmer can be a bit a grim.

I seem to spend the bulk of my time maintaining older applications - archaic code monstrosities that started life in the AS400 generation. "The AS400 generation?" You remember these days in the early 90's when email was a new an exciting thing, Yahoo was the search engine of choice and the phrase 'social networking' hadn't been dreamed up. So, when I find that a new exciting snippet of IBM i Software has slipped passed my radar it gets me all twitchy.

Guess what I found out today?

SNDSMTPEMM is a native IBM i command that will send emails with IFS attachments!

By native I mean, it comes quietly packaged with the operating system. I can now send emails from within RPGLE programs or from the command line by simply entering the command. I can attach any kind of files from the IFS (PDF, TXT, HTML, XML, yadda yadda) and I can even format the body of the emails using HTML to make it look all pretty.

What is the difference between /COPYand /INCLUDE in SQL RPGLE

  • Posted on: 22 August 2013
  • By: NickLitten

Using COPYBOOKS in the RPG programming language

/copy and /include both are used to add program code to our RPGLE and SQLRPGLE programs. Both commands will suck in program source code from a copybook - typically stored in QCPYLESRC.

There is one onteable difference between how the compile directives work in RPGLE and SQLRPGLE programs : in RPG ILE programs the /copy directive is expanded by sql preprocessior, but /include does not get expanded by SQLRPGLE code.

Why? The /COPY and /INCLUDE directives have the same purpose and the same syntax, but are handled differently by the SQL precompiler. If your program does not have embedded SQL, you can freely choose which directive to use. If your program has embedded SQL then stick with /copy but if it's a native RPGLE program then you can use either.

What is a Copybook?

/copy and /include copybook code is "pulled" into the source by the compiler before executing the compile. this eliminates having to duplicate the code a million times over (but I mainly use for prototypes, data structures...not calculations!).

 

 

/define is used to segregate code in copybooks (or skip code depending on usage).

How To Make YouTube Videos Available On Smart Phones and play on Mobile

  • Posted on: 19 August 2013
  • By: NickLitten
 
"Users who are not monetising partners cannot change the distribution setting in the Advanced Settings tab of Video Manager." 


Found that on the FAQ about this topic.
 
Might have been helpful if bloody Youtube said publicly. It just doesnt work. Our settings don't have that same structure. If you click on video manager and then advanced settings, you will see the options for syndication and making the video available everywhere. However those options for me are in gray and won't allow me to change it. Even though it already appears to be clicked on making it available everywhere.
 
Ignore this blog... I'm annoyed and have just started my second bottle of table plonk

Land Rover LR3 V6 2006 - the Big Boris Breakdown

  • Posted on: 16 August 2013
  • By: NickLitten
landrover break down broken ecu failure

The Full Boris

This damn problem has been going on forever. I'm sick of it. Sick sick sick bleeuuuuurgh!

So come on people... someone out there must have a solution? It's a totally weird starting problem but at least its now showing a repetitive solution. So lets go through it in clear English (well as clear as I can make it) and perhaps... just perhaps someone will kindly put me out of my misery.

CARFAX Vehicle Description: 2006 LAND ROVER LR3 SE

VIN: SALAD24436A347352

Body Style: 4 DR. WAGON/SPORT UTILITY

Driveline: ALL WHEEL DRIVE

Engine: 4.0L V6 FI

Here we go:

This starting problem is utterly random. It might work perfectly for days, weeks on end then suddenly refuse to start. It happens when the car is hot, cold, wet, on a hill, in the sunshine, in a garage, while refueling or anywhere at any time basically. When the car is running it runs perfectly. When it starts it starts perfectly. It never misfires or does anything else naughty.

When the car is refusing to start - it will totally refuse to start. I have tried setting the alarm, immobilizer and even opening manually with the key override. Boris will not start.

I have tried leaving the car for an hour and then trying again. Boris will not start.

Dirty Hack of the WDSC Turnover V100 plugins

  • Posted on: 14 August 2013
  • By: NickLitten

It's Dirty but it works!

So this is a technique that I discovered while trying to get WDSSC7.0.0.8 working with the April 2013 build of Turnover V100 Windows Client. This works but I wouldn't recommend it as this is a much simpler solution. Well.. while we are waiting for Unicom to release a backward compatible plugins selection for Turnover V100. Assuming they ever will of course :(

If you absolutely must have the latest iteration of the standard Turnover V100 client - then you could try this. I wouldn't recommend this technique as it is blending both versions, but it does work. Use at your own risk.

But wait we can trick it into working with our old WDSC install. It's fairly straightforward but a little fiddly:

  1. Install WDSC
  2. Install the latest V100 Client
  3. Replace the Plugins from this new V100 client with the *older* ones
  4. Tada! It works lovely... maybe... try at your own risk  :)

Ready?

Then lets go...

 

1 - Install WDSC

I am going to assume you have already done this. If not then just follow these instructions. Come back here when you're done

 

Pages