CAWABATC copy adds extra line './ ADD NAME=member name'
search cancel

CAWABATC copy adds extra line './ ADD NAME=member name'

book

Article ID: 21842

calendar_today

Updated On:

Products

File Master Plus for IMS File Master Plus for DB2 for z/OS

Issue/Introduction

When using batch utility CAWABATC to copy a PDS members to a sequential file an extra line './ ADD NAME=member name' is added to the output file. How can I remove this extra line?

Cause

The extra line './ ADD NAME=member name' is controlled by ADDCNTL keyword.
The ADDCNTL keyword lets you include or omit a member separator when copying a PDS members to a sequential file.
This keyword is only valid with the COPY and READ commands.

Resolution

In the example below the ./ ADD NAME=MEMBER1 will appear in the output file.


//SYSIN DD *
COPY,
INFILE(SYSUT1),
OUTFILE(SYSUT1O),
MEMBER(MEMBER1)
/*
//


To Eliminate the ./ ADD NAME= statement you can code the following adding the ADDCNTL(N) keyword.


//SYSIN DD *
COPY,
INFILE(SYSUT1),
OUTFILE(SYSUT1O),
MEMBER(MEMBER1),
ADDCNTL(N)
/*
//