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 for file existence

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

New User


Joined: 29 Dec 2011
Posts: 1
Location: India

PostPosted: Thu Dec 27, 2012 12:13 pm    Post subject: Connect Direct - Check for file existence
Reply with quote

Hi All

I have a Connect Direct Proc which copies a file from SNODE to PNODE

Code:
EXABCP01  PROCESS                                               -
          SNODE=ORGCD                                           -
          PNODE=CONNECTDTF_PROD                                 -
          &PFILE=&PARM1                                           
          SYMBOL &INDSN= \'\ \\\\\\ || ABC ||                   -
                                   \\\\ || DEF     ||           -
                                   \\\\ || GHI     ||           -
                                   \\\\ || JKL     ||           -
                                   \\\\ || MNO     ||           -
                                   \\\\ || &PARM2 || \'\         
COPYFILE  COPY  FROM (SNODE DSN=&INDSN                          -
                      DISP=SHR                                  -
                      SYSOPTS="DATATYPE(TEXT)")                 -
                TO   (PNODE DSN=&PFILE                          -
                DISP=(NEW,CATLG,DELETE)                         -
                UNIT=SYSDA                                      -
                SPACE=(CYL,(2,1),RLSE)                          -
                DCB=(LRECL=100,RECFM=FB,BLKSIZE=1000))           


Before copying to PNODE, Can I Check my file &PARM2 exists in the directory (ABC/DEF/GHI/JKL/MNO) or not?
Back to top
View user's profile Send private message

enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10521
Location: italy

PostPosted: Thu Dec 27, 2012 12:41 pm    Post subject: Reply to: Connect Direct - Check for file existence
Reply with quote

the fastest way to find the answer to such questions is to...
look Yourself at the Connect Direct manual

ask Your support how to find them

or search google for "Connect DIrect manuals".
I did it for You and here is the link
http://www-01.ibm.com/support/docview.wss?uid=swg27023598


in any case
the process will fail if the file to send does not exist
and for receiving side, the way the control cards are written
Code:
DISP=(NEW,CATLG,DELETE)
seem to imply that You are not writing to a zOS USS path but to a standard zOS MVS dataset
and the process will fail if the dataset already exists

furthermore if the CD step is part of a properly designed process
handled thru a scheduler with a properly <coded> jcl stream
it is unlikely that it will be executed if the dataset is not available
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
No new posts Picking up the latest PS file pema_yozer JCL & VSAM 8 Thu Oct 11, 2018 12:26 pm
No new posts Process only last key record in a fil... Naveen.katkuri24 DFSORT/ICETOOL 8 Tue Oct 09, 2018 9:39 am
No new posts ISPF 3.4 edit of a ps file, disp use... Carrie Da Silva TSO/ISPF 3 Fri Sep 21, 2018 3:01 am
No new posts ICETOOL - Finding keys within a file nartcr DFSORT/ICETOOL 10 Mon Sep 17, 2018 6:39 am
No new posts Remove selected duplicate rows from t... hnharish DFSORT/ICETOOL 3 Wed Sep 05, 2018 3:11 am

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