Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Turning off segment in Gentran

Status
Not open for further replies.

darkenberg

Programmer
Sep 8, 2005
1
US
Hello,

I am running Gentran Server for Windows 4.0, but I believe the answer to my question is relevant for all versions of Gentran Server for Windows.

I am mapping an outbound 830 transaction, and I want to only include the PRS segment if the input file includes a part release status of 3 or 7. If any other value is passed, I want to not send a PRS segment at all.

I have accomplished this through a code list on the input side that maps each possible digit to either nothing, or (in the cases of 3 and 7) to itself.

Is there a more eligant way to accomplish this? I just got lucky that it was a single digit input field, but the next time it could be a freeform text field with a handful of valid values.

Dave Arkenberg
CNH Global, NV
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top