Need DD for storing IP Address

radi8

Well Known Member
I have a requirement to store IP addresses in a JDE table. I am having trouble defining the data element to do so. I am sure that this is an easy question, but can anyone share a DD item that can store the IP address (of the form 10.1.1.1)?

I should be able to use a text field, but when I enter the data into a JDE field, it balks after entering in 10.1. JDE states that the value entered in not a valid number.

Data Dictionary values set as follows (image attached):
Data Type = 2 (String)
Size=11
Control Type=4
No Default value, Visual Assist, Edit Rule , or Next Numbering (all off)

Again, I am not sure what i am doing wrong or misunderstanding, but I do need to find a way to store/mnage these IP addresses
 

Attachments

  • nsiip_dd.doc
    52.5 KB · Views: 14
Never mind, got it to work.

Forgot to open/resave application after changing table.
 
Since you are just starting on it you should probably consider making the size bigger than 11. If you are storing it as a string in that format you will need at least 19 characters (255.255.255.255). You should also plan to store ipv6 addresses in the future, which will look something like this if stored as a formatted string: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
 
Back
Top