Changes between Version 5 and Version 6 of WF/Conexaocommainframe
- Timestamp:
- 07/30/07 15:43:13 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WF/Conexaocommainframe
v5 v6 235 235 236 236 / * 237 238 237 * Neste exemplo o formato de arquivo retornado pelo mainframe contém 2 campos de tamanho 5 e 30, respectivamente. 239 240 238 * Considera-se também que cada linha tem 200 caracteres 241 242 239 */ 243 240 … … 245 242 246 243 $natural = wf_create_object("wf_natural"); 247 248 244 $natural->configure("SUB_PROG", ""); 249 250 245 $natural->setDBGatewayProtocol(); 251 252 246 $natural->execute(); 253 247 … … 262 256 $result = $natural->getDataParameter(); 263 257 264 265 266 258 // Configura ResultSet para manipular os dados 267 259 … … 271 263 272 264 while ($natural->resultSet->getNextRow()){ 273 274 265 echo $natural->resultSet->getFieldByName("id"); 275 276 266 echo $natural->resultSet->getFieldByName("nome"); 277 278 267 } 279 268