Blogs

Tango Litten the crazy Boykin Spaniel

  • Posted on: 3 May 2016
  • By: NickLitten
english springer and boykin spaniel from south carolina

April 2016 see's the latest addition to the Litten Clan

#TANGO-LITTEN

Our fun but pesky pup Bailey has rached the age of majority and its time he had a playmante. After some soul searching and lots of craigslist searching I found his perfect buddy. Tango is a year old Boykin (boykins are slightly smaller than springers but with all the same energy, trickiness and effervessence for life). The little bugger has already fit into our active lifestyle and is a constant source of laughter and joy.

First night with the new family was the only night that the bed survived without being humped, bitten, licked and just puppy-bashed to pieces.

He's a whirling brown dervish. You just dont appreciate how hard it was to capture this split second of him sitting still enough to take a photo.

Tango is 1year old... many years of joy and doggy mayhem ahead of us.

;)

 

 

 

I cant see the IFS Network Share - is my profile disabled?

  • Posted on: 2 May 2016
  • By: NickLitten
access the as400 network like an ibm i server

So, I have a love/hate relationship with IBM i's integrated File System

  • Does you keep getting asked for username and password when accessing a windows IFS share?
  • Are you confused why the share to your IBM I Server cannot be viewed in Windows Explorer?
  • Can you view the IFS from one user profile but not with another?
  • Are you swearing at IBM i Access saying things like "Client Access is M&$%^#F*&^%K!"?

For me, the answer to all three questions is frequently "Yes" but luckily, the solution to all three problems is most likely the same thing : my IBM i User profile password has been entered incorrectly and it's been disabled. Now this is where the confusion can set in. Remember, the IFS Network shares are handled by the NETSERVER which is running on your IBM i System. Rather confusingly this network share will allow you access to the IFS but if you repeatedly enter your password wrong it will disable the network share portion of your profile while leaving the rest of the profile enabled -- So, you can signon and off and it looks good but all the while you will find that your netserver part of the profile has been disabled.

How can I check if I've been disabled?

IBM i v7.3 is here and its pretty cool

  • Posted on: 21 April 2016
  • By: NickLitten
ibm as400 is my grandfather

You think you know IBM i? You havent met 7.3

IBM i 7.3 Announcement & Material

  • IBM(r) DB2(tm) for i Temporal Support, enabling clients to conduct accurate analysis of data within a specific historical time period
  • More advanced analytics capability driven by enhanced OLAP functionality, allowing clients to better forecast, define gaps and build new strategies for business
  • Security authority collection, a new addition that better secures critical business data
  • Plus, many more enhancements that increase efficiency and functionality

IBM i 7.3

Here are some links which might be helpful as you start to learn more about IBM i 7.3 and the promotional material surrounding it:

Set off all indicators in RPG program

  • Posted on: 30 March 2016
  • By: NickLitten
not this type of indicator you donut!

RPG INDICATORS are switches

Just like car indicators (or 'blinkers' as my American cousins call them) they can be switched *ON or *OFF in a program to indicate the state of a certain piece of logic. Using numeric indicators has been frowned upon for years, since the introduction of alphanumeric 'indicators' in programming code. After all, what makes more sense checking a value of *IN66 or checking a value of a field called ItemCodeValid?

Now saying that, older programs some times use numeric indicators extensively and this is just a neat way of turning off blocks of indicators:

// *IN is a standard RPGLE array for *IN(01) thru *in(99) - and it says turn off all from 01 to 99
%SubArr(*IN : 01 : 99) = *Off;

In older column based RPG (or RPG400) you could use the MOVEA (move array command) turn them all off

C     MOVEA *ALL:'0' *in01

Or specify a smaller block of indicators:

C     MOVEA '0000' *in80

would move *zeros to *in80, *in81, *in82, *in83

 

Lots of other techniques but I like the %subarr solution.

 

Using special characters is naughty - Java and IBMi might get upset!

  • Posted on: 28 March 2016
  • By: NickLitten
special characters nuff said
This morning I was tryuing to figure out why I was having code page problems with a file that had been emailed to me from a British IBM i Server. 

Im try to run (from a CLLE) this command

QSH CMD('jar cvfM NAS_TMP/$$SAVE.SAVF /QSYS.LIB/NAS_TMP.LIB/$$SAVE.FILE')

but i receive this error :

Premere INVIO per chiudere la sessione del terminale.
/QSYS.LIB/NAS_TMP.LIB/675SAVE.FILE : impossible to find file or directory

My JOB CCSID is 280 , i have also tried to change to 37 but i receive always error .. can some one help me to solve this problem

I hate code pages.

I mean I dont hate them, they are good and useful but damn they annoy me when I get them wrong  ;)

In this case the solution was straight forward. I copied this asnswer from another forum and then promptly closed the tab so cant post a credit link  #oops

The $$ in Qshell means "insert current process id here". That's why when you specified /QSYS.LIB/NAS_TMP.LIB/$$SAVE.FILE', it gave an error message referring to /QSYS.LIB/NAS_TMP.LIB/675SAVE.FILE, because 675 must've been your process id (pid) at the time you ran this, so it replaced $$ with 675. To avoid this, you must escape the $$ so that it does not have a special meaning. An easy way to do that is to put the path names in single quotes, for example:

I am sick of Islamic Terrorists

  • Posted on: 22 March 2016
  • By: NickLitten
look its a medieval bloke with a beard

I'm fuming at the ridiculous mixture of extremism and political correctness that is swamping social media regarding todays incredibly evil killings in Belgium. Killings perpetrated in the name of Islam.

je suis bruxellesThe facts

  • Innocent people have been murdered by this act of planned EVIL.
  • Regular people both secular and religious alike were killed.
  • Religion (ISIS the Islamic State of Iraq and Syria) has claimed responsibility and is gloating about the death and destruction they have caused

How are ISIS Terrorists getting around?

This is a period of unprecedented un-regulated migration of tens of thousands of people from Iran and Syria into Europe. Migrants from the home counries of ISIS are able to move into the heart of Europe without any kind of security inspection.

Do we really believe that there are no islamic terrorists among the throngs of illegal immigrants flooding past European border controls? Come on now!

CPF327E Unable to move file into a new library

  • Posted on: 17 March 2016
  • By: NickLitten

That was a weird error!

I created a work file in my library, by copying an existing file from another library. I tinkered with it, loaded it with data and then wanted to rename it and store it alongside the original file in the original library. Simple enough one would think?

I renamed it in my library (simply by adding a suffix) and then tried to move it back into the original library but  *boom* IBM i gets very upset and will not let me move it reporting an error message: CPF327E Alternative name for file FILENAME not allowed.

What prevents a file moving to another library when it's got a unique name?

The problem here is - it actually hasn't got a unique name. I just thought it had. But it's got a sneaky SQL long name which already exists in the original library (schema).

Disable RPGLE 'live parsing' using Rational Developer (RDi)

  • Posted on: 29 February 2016
  • By: NickLitten

"IBM Rdi" is arguably the best code editor for coding on IBM i. That's pretty much a given. But, it's still filled with little annoyances and things that make me groan. one in particular is the lagginess and freeziing that comes when trying to edit very large programs using less that top-notch computer hardware. I present for the Jury - working at a customer site today tryingto edit a behomoth of a 65k+ line program (way to large for SEU) and RDi on the an HP desktop with 2GB memory. Open RDi... wait... wait... open source member... wait some more.... get into code changes and then it all locks up for 30 seconds while the LIVE PARSING procedures tries to figure out all the variables.

Luckliy we can turn it off!!

Window > Preferences > Remote Systems > Remote Systems LPEX Editor > ILE RPG (or type ILE RPG into the shortcut in the preferences window)

Look near the bottom and you will see 'Update the Outline View when text is changed in the editor'.

Turn it off and RDi way faster and smoother.

sqlrpgle select into extname using freeform

  • Posted on: 17 February 2016
  • By: NickLitten
bloody programers aaargh

Sometimes I find a problem and scratch my head and just cannot figure it out. i swear a lot. Then I discover the solution by climbing out of my little box, turning my head at a funny angle, squinting and thinking a bit differently. Then I swear even more. 

 

Problem

I converted a column based piece of SQLRPGLE from this:

d S21uservalues...                                                     
d               e ds                  qualified                    
d                                     extname('APG05PHY')  

to this:

dcl-ds S21uservalues qualified extname('APG05PHY') end-ds;   

The SQL to read this looks like this:

exec SQL fetch next from cursorAPG05 into :S21uservalues;

and then it just will not compile!

Compile error is: SQL0312  30     798  Position 52 Variable S21STOCKROOMNAME not defined or not usable.                                                   

"But that is completely valid new free format RPG syntax" I scream at the compiler. /me then goes on to waste more time than I am prepared to admit trying every combination of code to figure out whats going on

 

Pages