Welcome Guest ( Log In | Register )


 
Reply to this topicNew Topic
"Open mode not allowed" error
chopper
post Nov 4 2009, 04:18 PM
Post #1


Visitor
*

Group: Members
Posts: 3
Joined: 4-November 09
Member No.: 820


We're issuing a SEND from an AIX machine to a Z/OS mainframe (MVS) in the format as hinted at below.

cftutil send part=mainframe, idf=AIXtoMVS, fname=/testdir/testfile, nfname='mvs.gdg.dataset(+1)'

but we get an error "Open mode not allowed".

the CFTMAIN job on the mainframe has "ALTER" access to the 'mvs.*' hierachy. and we've tried existing PDS and new PDS files with various HLQ's and still get the same error.

Anyone any ideas?

p.s. CFT is version v2.4.1 m-3-18

cheers
Go to the top of the page
 
+Quote Post
Benoit
post Nov 5 2009, 08:24 AM
Post #2


Contributor
Group Icon

Group: Axway Moderator
Posts: 25
Joined: 9-November 08
From: Berlin - Germany
Member No.: 166


Hello,

The open mode means the sender side defines the file name on receiver side.

On sender side, this is done with the parameter 'nfname'
On receiver side, you have to code fname=&NFNAME in the receive IDF.

Benoit
Go to the top of the page
 
+Quote Post
chopper
post Nov 5 2009, 11:13 AM
Post #3


Visitor
*

Group: Members
Posts: 3
Joined: 4-November 09
Member No.: 820


thanks Benoit, that worked great!

I just need to fix the "creation error - 138 WF NOFND" error I'm now getting when trying to send a file with "FNAME=mvs.file.gdg(+1)"... wink.gif

thanks for your help!

Go to the top of the page
 
+Quote Post
Patrick
post Nov 13 2009, 10:35 AM
Post #4


Visitor
*

Group: Members
Posts: 3
Joined: 10-November 08
Member No.: 168


To receive in a GDG, CFT have to perform a RENAME.

The CFTRECV must includes a WFNAME like ("WFNAME=mvs.file.gdg.&IDTU").

WFNAME will be renamed at the end of the transfer to the FNAME (was "FNAME=mvs.file.gdg(+1)" )

WFNAME is the temporary filename to be renamed to FNAME when transfer ends


/Patrick
Go to the top of the page
 
+Quote Post
Tyrannosaurus re...
post Dec 9 2009, 09:01 AM
Post #5


Visitor
*

Group: Members
Posts: 1
Joined: 8-December 09
Member No.: 890


The rules to follow in this case are :
1) As noticed, you "must" use a temporary file if you want to receive a GDG on Z/OS
2) The &NFNAME variable will be specified in the CFTRECV FNAME=...
For example :
CFTRECV ID = OPENGDG ,
FNAME = TEST.FILE.&NFNAME ,
WFNAME = TEST.FILE.&IDTU ,
And the command will be :
SEND ... IDF=OPENGDG, NFNAME=GDG(+1)
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Skin designed by IPB Forum Skins