Post by shawnturner12 on Jan 8, 2018 0:04:59 GMT -5
My program (fmtest3.txt) at this moment can detect in which copybook to write based on the attribute given. I've made sections vul-fm001 and vul-fm002 to fill the appropriate copybooks. But now this is the problem. How can I write a move statement that uses the tagname as fieldname. Idealy I would have something like MOVE XML-text to 'field-name' in FM00x.
I could, of course use an IF-statement and use hard-coded field-names, but I want to make this more flexiable by using a variable for the field-name (and maybe also for the copybook-name) so I could code one MOVE-statement.
Seems to me that you are going to have to create a generic copy/move procedure, and then pass arguments, or pointers to an array of arguments, that provide source and target variables and well as a copy/move switch.
The actual statement constructs should be easy to figure out if you google them. Any programmer who doesn't have a google window or windows open all the time is either really good or really bad.
You should also find the Stack Overflow website and ask these kinds of questions there. I reference them quite a bit.
cooley47: Goff continues to stink. The D has done their job.
Feb 3, 2019 20:44:51 GMT -5
rskin72: The Lambs O just cannot get into sync. Limited rush attack, and Goff is not in any rhythm at all
Feb 3, 2019 20:47:23 GMT -5
rskin72: sooner or later the Lambs D will give...or they will make a big play. Either way the Lambs D right now has to win the game for the team
Feb 3, 2019 20:48:56 GMT -5
cooley47: No guarantee you ever get back to this game. Sorry but Goff can’t get it done. McVay should consider getting a veteran QB in offseason.
Feb 3, 2019 20:49:40 GMT -5
rskin72: Wow....238 vs 80 yards of offense....
Feb 3, 2019 20:52:17 GMT -5
cooley47: And yet only down 3!
Feb 3, 2019 20:53:16 GMT -5
rskin72: Gotta be something different that will break a big play. Maybe special teams...
Feb 3, 2019 20:56:07 GMT -5
rskin72: Going quicker now
Feb 3, 2019 20:58:49 GMT -5
rskin72: maybe getting some confidence
Feb 3, 2019 21:00:51 GMT -5
kaiser: bs holding call...
Feb 3, 2019 21:25:36 GMT -5
cooley47: I thought it was a late hit in Goff
Feb 3, 2019 21:31:22 GMT -5
cooley47: Steratore is a Pats guy so he thinks good call
Feb 3, 2019 21:31:48 GMT -5
cooley47: Horrible throw
Feb 3, 2019 21:41:52 GMT -5
kaiser: well he goffed that up!
Feb 3, 2019 21:45:45 GMT -5
SkinsTim: A first round pick for a guy that was terrible last year and his team is ready to move on from? No chance. They'll be luck to get a 2nd or a 3rd. I'd give up a 2nd for him and call it a day.
Mar 4, 2019 10:39:49 GMT -5