Do you verify that the FCAI_Result from INIT was zero, before the USER command?

Are you leaving the FCAI unchanged between INIT and SCMD?

Is the 4th argument "W" when you call with SCMD?

Are you calling with TERM when you are done, and checking the FCAI_result from 
that?

On Sun, 9 Oct 2016 20:33:01 -0400, Joseph Reichman wrote:

>FCAI_Result is 3 
>FCAI_CEC.  Is X'0A'
>
>The params are FCAI_MAP, SCMD,
>The command is User Reichman 
>
>I am running under TSO test it is preceded by 
>The correct 2 byte length X'000D'  thing 
>Is sometimes I get a return code of 1 after which 
>I submit a Pass joecool
>And then Put of the file and it works 
>When it doesn't work I get a 3 for the user subcommand and fcai_cec is x'0A'. 
>FTP_SESSION
>Error 
>
>Sometimes it does work
>
>
>> On Oct 9, 2016, at 8:18 PM, Bill Godfrey wrote:
>> 
>> When EZAFTPKS returns an error, what values are in the 4 bytes beginning at 
>> FCAI_Result at offset 32 into the FCAI, and what command is being passed in 
>> the 3rd argument? Is the halfword length in front of the command correct?
>> 
>> Bill
>> 
>>> On Sun, 9 Oct 2016 20:07:53 -0400, Joseph Reichman wrote:
>>> 
>>> That's what I am going to do 
>>> 
>>> As i don't know why I am getting errors from 
>>> EZAFTPKS "sometimes" and when I use 
>>> EXEC PGM=FTP it works fine 
>>> 
>>> Thanks 
>>> 
>>>> On Oct 9, 2016, at 8:03 PM, Charles Mills wrote:
>>>> 
>>>> PC 3270 file transfer (IND$FILE) would not be a bad way, and might be the
>>>> most convenient way, to download an assembler listing, assuming it were in 
>>>> a
>>>> legacy dataset. IND$FILE supports neither JES spool nor USS files.
>>>> 
>>>> I would guess you could invoke SUBMIT from an assembler program but the
>>>> obvious and simple way to submit a job from within a running program is to
>>>> write the JCL to a QSAM dataset allocated SYSOUT=(,INTRDR). That is what
>>>> SUBMIT does under the covers.
>>>> 
>>>> Can't help you on the FTP API -- nada experience there.
>>>> 
>>>> Charles
>>>> 
>>>> -----Original Message-----
>>>> From: IBM Mainframe Discussion List [mailto:[email protected]] On
>>>> Behalf Of Joseph Reichman
>>>> Sent: Sunday, October 09, 2016 4:51 PM
>>>> To: [email protected]
>>>> Subject: Re: intermittent errors using FTP program Interface EZAFTPKS
>>>> 
>>>> I am looking to down load an Assembler Program Listing to my PC 
>>>> 
>>>> When I submit a batch JCL EXEC PGM=FTP
>>>> 
>>>> And have the control cards in in INPUT DD *
>>>> 
>>>> It works 
>>>> 
>>>> Using the program interface EZAFTPKS sometimes it works sometimes it 
>>>> 
>>>> Doesn't 
>>>> 
>>>> As aside it there anyway to invoke the tso SUBMIT command from assembler
>>>> program Then from an assembler program I could submit that batch job
>>>> 
>> 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to