Page 1 of 2
PS to SPOOL
Posted:
Fri May 04, 2012 3:46 pm
by utpalpal07
Hello Guys,
Can I copy the information of a PS file into SPOOL(SYSOUT) under a heading?
I want to do this under one of my EXEC.
Please advice.
Regards,
Utpal
Re: PS to SPOOL
Posted:
Fri May 04, 2012 4:07 pm
by NicC
Why? What sort of heading - on the listing or what? Easy to copy a file to spool - IEBGENER with SYSUT2 pointing to sysout. If you want a report header then concatenate a dataset (or a DD * if your dataset is LRECL=80) with your header in it. If you want the header every x lines with a page number then write a program.
Re: PS to SPOOL
Posted:
Fri May 04, 2012 4:10 pm
by utpalpal07
Hello NicC
Can you please show by an example or prog.
It will be easy for me then
Thanks
Re: PS to SPOOL
Posted:
Fri May 04, 2012 4:12 pm
by NicC
Nope - for one thing you have not specified exactly what you want and secondly I have given you enough info for you to do whatever it is you want.
Re: PS to SPOOL
Posted:
Sun May 06, 2012 9:12 am
by steve-myers
Third, you are asking for the work product of a professional. Professionals expect to be paid. If you are interested in paying a professional, leave a message here and someone may contact you using the private mail facility of this forum. Please be patient; few people seem to be willing to pay, so it may be some time before a qualified professional willing to perform this task will read your post.
Re: PS to SPOOL
Posted:
Wed May 09, 2012 2:21 pm
by utpalpal07
Hi,
in a PS file:
*******************************************************
invalid datasets:
abc.001
xyz.005
abc.006
*******************************************************
I've a jcl:
//STEP110 EXEC PGM=ABCD
//*STEPLIB DD DSN=xxx,DISP=SHR
//STEPLIB DD DSN=xxx,DISP=SHR
// DD DSN=xxxx,DISP=SHR
//*
code block
//*
//MSGLIST DD SYSOUT=*
//*
//SYSOUT DD SYSOUT=*
//*
//MQSTRACE DD SYSOUT=*
How can i put the content of PS file in this sysout of step110?
Regards,
Utpal
Re: PS to SPOOL
Posted:
Wed May 09, 2012 2:27 pm
by BillyBoyo
Associate it with a DD that the program you are executing reads and which the program writes to either SYSOUT or something with SYSOUT=, depending on exactly what you mean.
If you are looking for better answers, please explain fully what you are trying to do, and why.
Re: PS to SPOOL
Posted:
Wed May 09, 2012 2:32 pm
by utpalpal07
Hi Billy,
Step110 executes a delta cobol program. and the above PS file contains some error msgs sorted in JCL. Now i want to show the errors in sysout of step110 using the other messages of delta cobol program.
Did i need to include the PS file in delta cobol program?
Cant i do this without including the PS in delta cobol program?
Re: PS to SPOOL
Posted:
Wed May 09, 2012 3:49 pm
by BillyBoyo
Yes, to the first. No to the second. Subject to the below.
OPEN, READ, DISPLAY, repeat until end, CLOSE. With FILE-STATUSes of course.
The only neat alternative I can think of quickly is to put your existing output from the Delta Cobol program to a dataset and then run another little step to "copy" the files, concatenated together, to on SYSOUT file. A little SORT step would do it well.
Re: PS to SPOOL
Posted:
Wed May 09, 2012 6:29 pm
by NicC
Or an IEBGENER - then you do not need sort control cards. The default for IEBGENER is to copy from input to output without any 'genering'.