03.03.2015 Views

CA Dynam for VSE User Guide

CA Dynam for VSE User Guide

CA Dynam for VSE User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Sample JCL<br />

Example 2: Produce a character only dump of all records containing X'FFFF' in<br />

positions 1213. Do not print more than 1,000 records, and stop the dump<br />

when positions 56 are XY. The file is on disk and records are variable blocked.<br />

// DLBL INPUT,'INVENTORY.FILE'<br />

// EXEC DYNCOPY<br />

PRINT,MAX=1000,CHARONLY,LRECL=V,RECFM=VB,BLKSIZE=6000<br />

FEOF=56,2,EQ,C,XY<br />

SEL=1213,2,EQ,X,FFFF<br />

/*<br />

Example 3: Create a test file on disk from the master payroll tape file by<br />

copying record types 1 and 5. The record number is in card column 1. The<br />

records on tape are 100 bytes blocked 20. The output disk file records are to<br />

be blocked 40. Get a hex dump of all records copied to the new test file.<br />

// JOB DYNCOPY<br />

// TLBL TAPEIN,'PAYROLL.MASTER'<br />

// DLBL DISKOUT,'PAYROLL.TEST'<br />

// EXEC DYNCOPY<br />

COPY,PRINT,LRECL=100,RECFM=FB,BLKSIZE=2000,OBLKSIZE=4000<br />

SEL=1,1,EQ,C,1<br />

SEL=1,1,EQ,C,5<br />

/*<br />

/&<br />

Example 4: This is an example of stacking files on one output tape.<br />

// JOB CREATE A MULTIFILE SET<br />

// DLBL IN1,'FILEA' 1ST INPUT FILE<br />

// TLBL OUT1,'BACKUP.FILEA',STACK=A 1ST OUTPUT FILE<br />

// EXEC DYNCOPY,SIZE=22K<br />

COPY,FILEIN=IN1,FILEOUT=OUT1<br />

/*<br />

// DLBL IN2,'FILEB' 2ND INPUT FILE<br />

// TLBL OUT2,'BACKUP.FILEB',STACK=A 2ND OUTPUT FILE<br />

// EXEC DYNCOPY,SIZE=22K<br />

COPY,FILEIN=IN2,FILEOUT=OUT2<br />

/*<br />

// DLBL IN3,'FILEC' 3RD INPUT FILE<br />

// TLBL OUT3,'BACKUP.FILEC',STACK=A 3RD OUTPUT FILE<br />

// EXEC DYNCOPY,SIZE=22K<br />

COPY,FILEIN=IN3,FILEOUT=OUT3<br />

/*<br />

/&<br />

Chapter 13: DYNCOPY−<strong>CA</strong> <strong>Dynam</strong> File Utility Program 13–7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!