Topic
  • 1 reply
  • Latest Post - ‏2013-08-30T14:39:41Z by VolkerFriedrich
developer_74
developer_74
1 Post

Pinned topic pass record length and record format using java API

‏2013-08-08T21:34:55Z |

Hi,

 

  I am trying to pass record length and record format using java API as below -  dcb=(recfm=FB, lrecl=1000)

TOPNG PROCESS SNODE=<nodename> COPY FROM (FILE=<sourcefile> PNODE) TO (FILE=<targetfile> dcb=(recfm=FB, lrecl=1000))

 

the above string is passed to node.execute API as second argument. First argument is submit maxDelay=Unlimited. It's not working though since mainframe shows the defaults being used for the file. is this the right way to pass record length using java API? 

 

Thanks

 

  • VolkerFriedrich
    VolkerFriedrich
    156 Posts

    Re: pass record length and record format using java API

    ‏2013-08-30T14:39:41Z  

    Are you specifying <targetfile> in quotes? If so, you could be hitting the known (and fixed) issue described in Technote 1559858:

    Parser skips next token following filename within quotes on same line

    Try breaking the process text into separate lines.

    Tip: Create and validate your process text in CD Requester and then cut&paste it over to your Java application.