It looks to me like you're creating the PGN tags correctly. I would expect the PGN file to be read correctly by Arena, Shredder, and Scid/Scid vs. PC. Also, I'd be surprised if Winboard or Hiarcs couldn't also read it.
Did you get any program to read your PGN file? I would be suspicious that something might be wrong with your PGN file.
BTW, I use Fred Mellender's YATT program to practice tactics. It's only on the Windows platform. It converts PGN files to its own YATT format for use.
https://sites.google.com/site/fredm/
Android or Windows, free or commercial.
My favorite chess app is iChess , which displays problems to be solved on my Android
tablet. However almost half the problems in its various files are cooked.
I have my own collection of hundreds of problems/ FEN positions that I'd like to display.
These are selected and not cooks.
I put some carefully into a pgn file, meeting all the standards of this format. It is divided
into tag pairs & movetext. The tags include the Seven Tag Roster followed by
[SetUp "1"] and then [FEN "rnb... w - - 0 29"] or whatever the position requires.
This file will not be displayed by any software I've tried.
iChess recognizes and opens the file , may show a few problems but usually
crashes. I emailed Asim Pererra asking about the format of his files, but no answer.
On Windows my WinBoard , HiArcs and Shredder all refuse to display anything,
usually saying "illegal move" .
Does anyone know the format of the files used by iChess ? Is there any software
that will display a pgn file containing a FEN tag , either as a problem query or simply
the continuation of a game fragment ? Thanks for your kind assistance.
little_ernie dav.lemper@gmail.com