Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Connect Direct: Check existence of a dataset on SNODE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
ansnero

New User


Joined: 26 May 2006
Posts: 13

PostPosted: Thu Mar 18, 2010 10:33 pm    Post subject: Connect Direct: Check existence of a dataset on SNODE
Reply with quote

Hi
I have a Connect Direct procedure which copies a file from PNODE to SNODE and then execute a JCL on the SNODE.

Code:
STEP1    COPY FROM(DSN=ABC.CDE.FGH           -         
                     DISP=SHR)                                 -       
               TO (DSN=PQR.STU.VWX                     -         
                DISP=(NEW,CATLG,DELETE)              -       
                UNIT=SYSDA                                    -       
                DCB=(RECFM=F,LRECL=100,BLKSIZE=0))   -       
                COMPRESS EXT                                           
STEP2   IF (STEP1 EQ 0) THEN                                           
          RUN JOB (DSN=SEC.TRIGGER.JCL(CA71)) SNODE   
         ELSE                                                         
          EXIT                                                         
         EIF   



Before I do the COPY I need to check if the dataset PQR.STU.VWX already exists on the SNODE catalog. Is there a way to do that from PNODE using connect direct process statements

Thanks
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Fri Mar 19, 2010 9:01 pm    Post subject: Reply to: Connect Direct: Check existence of a dataset on SN
Reply with quote

Well, as I'm sure you already know, the Connect:Direct Process language has a very limited set of instructions (i.e. COPY, RUN JOB, and RUN TASK being the major ones). RUN JOB doesn't take any parameters. RUN TASK does.

So, I'm guessing that in this case only the RUN TASK would make sense. What you'd call to be executed I don't know, since it would have to check for the existence of the dataset (presumably using LISTCAT) and then someone returning that information back to the PNODE (maybe as a return-code value).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts How could i share my personal dataset... James Halley TSO/ISPF 1 Fri Mar 23, 2018 9:41 pm
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
This topic is locked: you cannot edit posts or make replies. How could i share my personal dataset... samenxia163 TSO/ISPF 1 Fri Mar 09, 2018 12:18 pm
No new posts CICS EZASOKET CONNECT using DNS name ankit.jain CICS 1 Tue Jan 16, 2018 7:24 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us