Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Connect Direct return code

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Connect Direct return code
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10234
Location: italy

PostPosted: Wed Jan 23, 2013 2:18 pm    Post subject: Reply to: Connect Direct return code
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

Site Director


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

PostPosted: Wed Jan 23, 2013 9:04 pm    Post subject:
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    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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us