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.
Carnack: He did a good job there, but its Clemson land
Nov 17, 2019 16:28:31 GMT -5
SkinsFan67: we will draft him now after trading back in the 1st because we are getting such a bargain. #1 talent...#winningtheoffseason
Nov 17, 2019 16:28:48 GMT -5
Carnack: I heard today Dave, that his injury is a dislocated hip..no fractures
Nov 17, 2019 16:28:50 GMT -5
southskin: Yeah.... My brother has been a Clemson fan since 1978 and a Redskins fan since 1976.
Nov 17, 2019 16:28:56 GMT -5
Carnack: Lots of guys down there went with the Falcons so thats saying somethign
Nov 17, 2019 16:29:22 GMT -5
SkinsFan67: That's good for him then. I hate to see players get injured like that, especially when they have so much talent and potential.
Nov 17, 2019 16:29:49 GMT -5
Carnack: Anyways I am watching the Patriots and the Eagles so there is hope for some enjoyment today still...lol. Go Pats!
Nov 17, 2019 16:30:18 GMT -5
Carnack: I agree and he is a good kid too.
Nov 17, 2019 16:30:37 GMT -5
Karl: Well... that's it for me... 49ers game has my attention now.
Nov 17, 2019 16:30:38 GMT -5
southskin: I think we'll end up with the first or second pick in the draft. Let's just hope the Bengals draft a QB if they have the first pick. But I could see 'em drafting Young. Young is from Maryland, but he would be a "home town" kid of sorts being he went to
Nov 17, 2019 16:30:48 GMT -5
southskin: Ohio State
Nov 17, 2019 16:30:51 GMT -5
Carnack: Eagles on the board first 3-0
Nov 17, 2019 16:30:54 GMT -5