Skip to main content

Zowe Python SDK - z/OS Files package

Project description

z/OS Files Package

Contains APIs to interact with files and data sets on z/OS (using z/OSMF files REST endpoints).

Examples

Create a dataset

from zowe.core_for_zowe_sdk import ProfileManager
from zowe.zos_files_for_zowe_sdk import Files

profile = ProfileManager().load(profile_name="zosmf")
files_info = Files(profile)

print(files_info.create_data_set("DATASETNAME", options={
    "primary": 10,
    "secondary": 1,
    "alcunit": "TRK",
    "lrecl": 80
}))

Delete a dataset member

from zowe.core_for_zowe_sdk import ProfileManager
from zowe.zos_files_for_zowe_sdk import Files

profile = ProfileManager().load(profile_name="zosmf")
files_info = Files(profile)

print(files_info.delete_data_set(dataset_name="ZOWEUSER.PUBLIC.MY.DATASET.JCL", member_name="MEMBER"))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page