IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Connect Direct return code


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
saikat

New User


Joined: 23 Jun 2008
Posts: 26
Location: pune

PostPosted: Wed Jan 23, 2013 2:11 pm
Reply with quote

I am using below connect direct script:-

Code:
SISBICDE PROCESS PNODE=&PNODE SNODE=&SNODE
SYMBOL &DATAFL="&DATA.:KEYWORDREPLACE=YES"
SYMBOL &PARMFL="&RQST"
STEP1 COPY FROM(PNODE DSN=&DSN1 -
DISP=SHR) -
TO(SNODE DSN=&DATAFL -
sysopts=\":datatype=text:xlate=yes\ || -
\:xlate.table=ebcdic-to-ascii\ || -
\:strip.blanks=yes:"\ -
DISP=RPL) -
COMPRESS -
EXT -
CKPT=100K
IF (STEP1=0) THEN
STEP2 COPY FROM(PNODE DSN=&DSN3 -
DISP=SHR) -
TO(SNODE DSN=&PARMFL -
DISP=RPL) -
COMPRESS -
EXT -
CKPT=100K
EIF

Here STEP1 issues return code 0 just after process submission whereas I want to execute step2 only after file is successfully copied into destination node. I have tried with MAXDELAY=UNLIMITED option still it's producing same result. Could you please advise if I want to implement your 1st solution how can I amend the above connect direct script.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jan 23, 2013 2:18 pm
Reply with quote

the moderators are getting fed up of inconsiderate people who tailgate 6 years old topics with unrelated questions

WHEN YOU HAVE A NEW QUESTION START A NEW TOPIC

topic split and moved icon_evil.gif

( it was also code' d for better readability )
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jan 23, 2013 9:04 pm
Reply with quote

Hello,

Suggest you redesign . . . There is no good reason to "hang up" resources waiting for an external process to complete.

You could send the file as you do now and on the remote send back a confirmation when the transfer is successful. When the confirmation is received, automatically start the second process?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Connect Direct 6.3 for Z/OS All Other Mainframe Topics 20
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top