IBM Support

Using the CPYFRMSTMF and CPYTOSTMF Syntax for QDLS Objects

Troubleshooting


Problem

This document provides the syntax to reference objects in the QDLS file system when using the CPYFRMSTMF and CPYTOSTMF commands.

Resolving The Problem

Use this basic syntax with the CPYTOSTMF OS/400 command to copy an operating system physical file member to a new ASCII text document in the QDLS file system (a folder). On the operating system command line, type the following, and press the Enter key:
Syntax:
  • CPYTOSTMF FROMMBR('/QSYS.LIB/AnyLib.LIB/NewDoc.FILE/NewDoc.MBR') + TOSTMF('/QDLS/AnyFlr/NewDoc.txt')

Example:
  • CPYTOSTMF FROMMBR('/QSYS.LIB/GSINGH.LIB/GSNEWDOC.FILE/GSNEWDOC.MBR') + TOSTMF('/QDLS/GSINGH/GSNEWDOC.TXT')

Use this basic syntax with the CPYFRMSTMF OS/400 command to copy an ASCII text document from the QDLS file system (a folder) to an operating system physical file member. If the OS/400 file does not already exist in the library, create it with the CRTPF command first, specifying the correct record length. On the operating system command line, issue the following command and press the Enter key:
Syntax:
  • CRTPF FILE(MyLib/NewFile) RCDLEN(90)

    CPYFRMSTMF FROMSTMF('/QDLS/AnyFlr/NewDoc.TXT') +
    TOMBR('/QSYS.LIB/AnyLib.LIB/NewFile.FILE/NewFile.MBR') +
    MBROPT(*REPLACE)

Example:
  • CRTPF FILE(GSINGH/GSFILE) RCDLEN(90)

    CPYFRMSTMF FROMSTMF('/QDLS/GSINGH/GSDOC.TXT') +
    TOMBR('/QSYS.LIB/GSINGH.LIB/GSFILE.FILE/GSFILE.MBR') +
    MBROPT(*REPLACE)

[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000001jCPAAY","label":"Integrated File System-\u003EQDLS"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Historical Number

22274119

Document Information

More support for:
IBM i

Component:
Integrated File System->QDLS

Software version:
All Versions

Operating system(s):
IBM i

Document number:
641357

Modified date:
22 October 2024

UID

nas8N1017512

Manage My Notification Subscriptions