Connect Direct: instream SUBMIT



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Connect Direct: instream SUBMIT

Postby DonkeyKong » Wed Apr 01, 2015 9:13 pm

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!
DonkeyKong
 
Posts: 34
Joined: Thu Oct 02, 2014 7:51 pm
Has thanked: 3 times
Been thanked: 0 time

Re: Connect Direct: instream SUBMIT

Postby Robert Sample » Thu Apr 02, 2015 3:12 am

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.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Connect Direct: instream SUBMIT

Postby DonkeyKong » Thu Apr 02, 2015 5:33 pm

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?
DonkeyKong
 
Posts: 34
Joined: Thu Oct 02, 2014 7:51 pm
Has thanked: 3 times
Been thanked: 0 time

Re: Connect Direct: instream SUBMIT

Postby NicC » Fri Apr 03, 2015 10:30 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Connect Direct: instream SUBMIT

Postby DonkeyKong » Fri Apr 03, 2015 10:47 pm

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.
DonkeyKong
 
Posts: 34
Joined: Thu Oct 02, 2014 7:51 pm
Has thanked: 3 times
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post