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
 

 

CDWAIT return code 209

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

Moderator Team Head


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

PostPosted: Thu Apr 29, 2010 2:54 pm    Post subject: Reply to: CDWAIT return code 209
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    Post subject: Re: Reply to: CDWAIT return code 209
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    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 EXIT or RETURN cvnlynn CLIST & REXX 16 Wed Jul 19, 2017 2:50 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am


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