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

About the FTP Program


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

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Tue Nov 25, 2008 3:19 am
Reply with quote

Hi,

Can someone help in understanding the program 'FTP' . Is that an assembler program??

If not can this be called as an Subroutine.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Nov 25, 2008 3:22 am
Reply with quote

smaru wrote:
Hi,

Can someone help in understanding the program 'FTP' . Is that an assembler program??

If not can this be called as an Subroutine.


I believe that FTP is written in "C". Yes, it can be called via a "CALL" statement.
Back to top
View user's profile Send private message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Wed Nov 26, 2008 6:30 am
Reply with quote

After searching in this forum, I was able to compile program with FTP as subroutine.

When I execute the Jcl using the same, it is getting abended with abend message " CEE3648S POSIX(ON) run-time option in a nested enclave PROGRAM is not supported. where PROGRAM refers to my Cobol program.

Can any one suggest me about enabling POSIX(ON) for cobol program.
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 Nov 26, 2008 7:54 am
Reply with quote

Hello,

I believe you need to set posix off.

Does your jcl look something like:
Code:
//CALLFTP   EXEC PGM=PROGRAM,PARM='xx.xx.xx.xx ( EXIT'

if so you might try this:
Code:
//CALLFTP   EXEC PGM=PROGRAM,PARM='POSIX(OFF) /xx.xx.xx.xx ( EXIT'


Quote:
A cleaner fix is to leave JCL alone and change the COBOL to prepend the PARM with the required POSIX(OFF) runtime option before invoking FTP:

Add to WORKING-STORAGE SECTION:

01 WS-PARM.
05 WS-LEN PIC 999 COMP.
05 WS-TEXT.
10 FILLER PIC X(12) VALUE 'POSIX(OFF) /'.
10 WS-REST PIC X(88).

Change the following in LINKAGE SECTION:

01 CALLER-PARM.
05 CALLER-LEN PIC 999 COMP.
05 CALLER-TEXT PIC X(100).

Change start of PROCEDURE DIVISION:

PROCEDURE DIVISION USING CALLER-PARM.
MOVE CALLER-TEXT (1:CALLER-LEN) TO WS-REST.
COMPUTE WS-LEN = CALLER-LEN + 12.
CALL FTP USING WS-PARM.
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 Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top