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

CDWAIT return code 209


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

New User


Joined: 29 Jun 2006
Posts: 33

PostPosted: Thu Apr 29, 2010 1:47 pm
Reply with quote

CDWAIT is returning 209, what could be the reason. We are pulling file from UNIX to Mainframe.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu Apr 29, 2010 2:54 pm
Reply with quote

From the User's Guide:

You can also use the CDWAIT and CDPOST programs to synchronize the operation of batch job streams and the execution of a Process. Normally, after a job stream executes a DMBATCH step to submit a Process, the next step in the job is given control immediately. This control transfer normally occurs before the Process completes. Subsequent steps in the job stream, therefore, cannot do any processing that depends on the successful completion of the Process.

By using CDWAIT in place of DMBATCH and modifying the Process slightly, you place the job stream in a wait status until CDPOST is executed with RUN TASK from the Process. Executing CDPOST brings CDWAIT out of the wait state and enables it to complete. You can also set a return code that CDWAIT completes with, indicating success or failure.

Two parameters are passed in the CDWAIT parameter list in the format mm:ss,xxxxxxx, where mm:ss is the number of minutes and seconds to wait for the cross-memory post to be received (2 minutes in the example) and xxxxxxx represents the input parameters for DMBATCH (YYLLYYY
in the example).

If CDWAIT is not posted within the time period specified in the parameter, it completes with a return code of 209. CDWAIT calls DMBATCH to process the input (SYSIN) commands and then waits for CDPOST. CDWAIT passes its ASCB and ECB address to CDPOST. CDPOST uses
cross-memory services to POST CDWAIT.

CDWAIT may issue the following return codes:

Code:
Return Code Cause of Return Code
201         NO PARMLIST SPECIFIED
202         2ND PARM NOT SPECIFIED
203         TOO MANY PARMS
204         1ST PARM LENGTH WRONG
205         2ND PARM LENGTH WRONG
206         ASCB-ECB RECORD NOT FOUND
207         ASCB FIELD NOT FOUND OR WRONG
208         ECB FIELD NOT FOUND OR WRONG
209         TIMER EXPIRED BEFORE TASK DONE


Note: The amount of Connect:Direct activity, the relative loading of the network, and activity on the remote node can introduce queuing and performance delays. Therefore, a Connect:Direct Process may not complete within the time window you specify in CDWAIT. In this situation, do not use CDWAIT and CDPOST.
Back to top
View user's profile Send private message
mfhelp
Warnings : 1

New User


Joined: 29 Jun 2006
Posts: 33

PostPosted: Thu Apr 29, 2010 3:06 pm
Reply with quote

Thanks Kevin, Can you send me the link for this user guide so that I also have list of all other possible error codes.
Thanks again.
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top