Page 1 of 1

SYSPRINT to a Dataset, TK4

Posted: Sun Feb 03, 2019 8:14 am
by jeffmt_2684
I am practicing Assembly language with Hercules/TK4 and I am trying to figure out the proper way to print the job output to a dataset and creating a new member within it.

I have come across a few different hits on this with Google, but when I try some of the examples, I keep getting JCL errors.

within the JCL for outputting to a dataset.

What is the correct way to define the definitions needed to output to a dataset defined like so:

RF = FB
LRL = 80
PBS = 800

Allocation Space Unit = T
Primary Space Qty = 10
Secondary Space = 5
Number of Directory Blocks = 20.

This is my current working JCL:

Code: Select all

//HERC01O JOB ,'TEST',MSGCLASS=H,
//*
//STEP1  EXEC PGM=ASSIST
//SYSPRINT DD SYSOUT=*
//SYSIN DD *  

Re: SYSPRINT to a Dataset, TK4

Posted: Sun Feb 03, 2019 8:57 am
by jeffmt_2684
Using:
https://www.tutorialspoint.com/jcl/jcl_dd_statement.htm

I was able to print to a non-partitioned dataset I created using this

Code: Select all

//HERC01O JOB ,'TEST',MSGCLASS=H,
//*
//STEP1  EXEC PGM=ASSIST
//SYSPRINT  DD  DSN=HERC01.TEST.JOB,DISP=(OLD,CATLG)
//SYSIN DD * 
But how do I set it up to print to a partitioned dataset, creating a new member each time?

Also, there is some ASSIST heading information in the job output missing that I would normally see when printing using

Code: Select all

/SYSPRINT DD SYSOUT=*
Any ideas? Thanks!

Re: SYSPRINT to a Dataset, TK4

Posted: Sun Feb 03, 2019 6:40 pm
by nicc
You would need to allocate a PDS with the same attributes as HERC01.TEST.JOB (except that it would be a PDS and not a sequential data set).

Blind Bambi about the missing info.