PS to SPOOL



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

PS to SPOOL

Postby utpalpal07 » Fri May 04, 2012 3:46 pm

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
utpalpal07
 
Posts: 43
Joined: Wed Feb 08, 2012 12:02 pm
Has thanked: 1 time
Been thanked: 0 time

Re: PS to SPOOL

 

Re: PS to SPOOL

Postby NicC » Fri May 04, 2012 4:07 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: PS to SPOOL

Postby utpalpal07 » Fri May 04, 2012 4:10 pm

Hello NicC
Can you please show by an example or prog.
It will be easy for me then

Thanks
utpalpal07
 
Posts: 43
Joined: Wed Feb 08, 2012 12:02 pm
Has thanked: 1 time
Been thanked: 0 time

Re: PS to SPOOL

Postby NicC » Fri May 04, 2012 4:12 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: PS to SPOOL

Postby steve-myers » Sun May 06, 2012 9:12 am

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.
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: PS to SPOOL

Postby utpalpal07 » Wed May 09, 2012 2:21 pm

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
utpalpal07
 
Posts: 43
Joined: Wed Feb 08, 2012 12:02 pm
Has thanked: 1 time
Been thanked: 0 time

Re: PS to SPOOL

Postby BillyBoyo » Wed May 09, 2012 2:27 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: PS to SPOOL

Postby utpalpal07 » Wed May 09, 2012 2:32 pm

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?
utpalpal07
 
Posts: 43
Joined: Wed Feb 08, 2012 12:02 pm
Has thanked: 1 time
Been thanked: 0 time

Re: PS to SPOOL

Postby BillyBoyo » Wed May 09, 2012 3:49 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: PS to SPOOL

Postby NicC » Wed May 09, 2012 6:29 pm

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'.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post