How to Copy Data Between z/OS and USS via Batch Job

February 14, 2017 Rui Miguel Feio

Ever wondered how you can transfer data between z/OS and Unix System Services? Well, one of the ways you can do this is via batch job. //COPYFILE EXEC PGM=IKJEFT01 //IN DD PATH=’/tmp/file.txt’ //OUT DD DISP=SHR,DSN=USERA.USSFILE.EXAMPLE(FILEUSS) //SYSTSPRT DD SYSOUT=* //SYSTSIN DD * OCOPY INDD(IN) OUTDD(OUT) TEXT /* In this batch job, […]

Using CLIST with RACF SEARCH command

September 13, 2016 Rui Miguel Feio

Probably not known to many people is the existence or how to use the CLIST parameter of the RACF SEARCH command. Its usefulness however makes it worthwhile for everyone to learn how it works. As you may know, to query the RACF database for the existence of profiles, we rely […]

How to execute TSO commands in Batch Job

July 19, 2016 Rui Miguel Feio

Running TSO commands via batch job can be very useful if you have the need to execute multiple commands or if you want to capture the output of the TSO commands. To execute the TSO commands in batch you can use one of the following Terminal Monitor Programs (TMP): IKJEFT01 […]

How to Copy a Dataset into Another Using IEBGENER

August 18, 2015 Rui Miguel Feio

IBM utility IEBGENER can be used to copy the content of one dataset into another via batch. The basic JCL for this effect is as follows: //COPYFILE EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSUT1 DD DSN=input_dataset,DISP=SHR //SYSUT2 DD DSN=output_dataset,DISP=(,CATLG), // VOL=SER=volser, // SPACE=(CYL,(xx,yy),RLSE) //SYSIN DD DUMMY //SYSUDUMP DD SYSOUT=* //* You […]

1 2 3 6