cancel
Showing results for 
Search instead for 
Did you mean: 

File transmission, file conversion in OS400

Former Member
0 Kudos

Hello Gurus,

We are sending the file from our Quality SAP to other AS400 server but we get an error.

From: SAP Quality as400

To: External server user SAPTEST

The file we are sending is SAP9530001_20100813from folder /usr/sap/Q00/INTERFACES/OUTBOUND/USSD002

Going to

External server user SAPTEST

SAP9530001_20100813 is a STMF format and according to the recipients they are expecting SAVE file that has a stream file in it.

Is there any way we can convert the file to SAV file that has a stream file in it? We used command CPYFRMSTMF but we ran a lot of errors. We just wanted to put the file in the library TESTISMS.

We use this command:

CPYFRMSTMF FROMSTMF('/usr/sap/Q00/INTERFACES/OUTBOUND/USSD002/SAP9530001_20100813') TOMBR('/QSYS.LIB/TESTIMSS.LIB/SAP9530001.file')

but it ended with error:

Owner of object SAP9530001 in TESTISMS type *FILE changed.

Incorrect record for output operation to save file

Object SAP9530001 in TESTISMS type *FILE deleted

Error writing to object.

Stream file not copied.

I would greatly appreciate your help. Thank you so much in advance.

BR,

Eco

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks a lot

0 Kudos

If I understand your problem correctly, the following steps should help:

To convert a STMF into a SAVF that has a STMF in it, you must first save the stream file into the save file:

1. CRTSAVF FILE(<lib>/<savf>)

2. SAV DEV('/QSYS.LIB/<lib>.LIB/<savf>.FILE') OBJ('<stmf>')

Now you copy that save file into your outbound directory:

CPYTOSTMF FROMMBR('/QSYS.LIB/<lib>.LIB/<savf>.FILE') TOSTMF('/usr/sap/Q00/INTERFACES/OUTBOUND/USSD002')

Kind regards,

Christian Bartels.