Page 1 of 1

Connect Direct: instream SUBMIT

PostPosted: Wed Apr 01, 2015 9:13 pm
by DonkeyKong
Hello,

I am trying to run a Connect Direct process completely instream. This means that I do not want to call a seperate PROC containing the job instructions. I want everything to be done instream. The reason I am doing this is that I will generate the instructions in the step preceding the Connect Direct step.

Prior to connect direct, I generate a list of files that I want to transfer and use that to dynamically create a file in this format:

 SIGNON                                                         
 SUBMIT PROCESS PNODE=USBD000 SNODE=USB2MSP NOTIFY=%USER -
        STEP1 COPY FROM(USBD000                          -     
                       DSN=KDBACHM.FINDFILE              -     
                       DISP=SHR)                         -     
                     TO(DSN=KDBACHM.DELETEME             -     
                       STORCLAS=SCPROD                   -     
                       DISP=(,CATLG))                           
        STEP2 COPY FROM(USBD000                          -     
                       DSN=KDBACHM.FINDFILE              -     
                       DISP=SHR)                         -     
                     TO(DSN=KDBACHM.DELETEME.ONE         -     
                       STORCLAS=SCPROD                   -     
                       DISP=(,CATLG))                           
 SIGNOFF                                                       


I don't want to transfer symbolics to a seperate PROC, as everything will be hardcoded already in the file I generated. Then I will use this as the sysin parameter for my connect direct DMBATCH step.

I suppose that's clear as mud so if you there is something I need to clarify just let me know.

Thanks!

Re: Connect Direct: instream SUBMIT

PostPosted: Thu Apr 02, 2015 3:12 am
by Robert Sample
Well, congratulations. You don't ask any questions. You don't indicate any problems. So congratulations is about the only thing I can think of.

Re: Connect Direct: instream SUBMIT

PostPosted: Thu Apr 02, 2015 5:33 pm
by DonkeyKong
Haha. Well, the question is can I do this, and if so, how? The above code is an outline of what I want to happen, but it is missing some necessary components or has errors in the use of keywords, syntax. So it's more of asking: What do I need to fix in that code to make it work?

Re: Connect Direct: instream SUBMIT

PostPosted: Fri Apr 03, 2015 10:30 pm
by NicC
Quickest way to find out a) if it works and b) if it does not work whay it complains about is to run the thing. Resolve what you can and come back with those that you cannot.

Re: Connect Direct: instream SUBMIT

PostPosted: Fri Apr 03, 2015 10:47 pm
by DonkeyKong
Thanks for that fresh, enlightening suggestion for error checking! I did a lot of that before I posted here.

As far as I'm concerned, it doesn't work. If it does, then the syntax is different for the SUBMIT PROCESS part.

I just generated the PROC instead. I was thinking that that would create a JCL error or result in pulling in old data. But since instream code is not resolved until runtime, the most current version of the file is pulled in.

This thread can be considered closed.