Graham Hobbs wrote:

>but I have compiled program PGM0047 and the output is in SDSF:O. Can I get 
>this output into a 133 byte PDS via a step in a JCL stream e.g:

It is possible, but what output? From compiling PGM0047 or the PGM0047's output?

Depending how you compiled PGM0047, you can put the program's output in a PDS 
via JCL during execution.

Assuming you want the program's output, in the step where your PGM0047 is 
running, simply replace

//???? DD SYSOUT=O to

//???? DD DISP=OLD,DSN=your.pds(PGM0047)


>//STEP1    EXEC PGM=IDCAMS                                              
>//SYSPRINT DD SYSOUT=*                                                  
>//SYSIN    DD *                                                         
>  DELETE IBMUSE2.QKVS.PRNT133(PGM0047)                                         
>     
>/*

You want to delete your output before you extract it via SDSF? I'm not sure 
what you're trying to do...


>.. at this point I'd //STEP2 to be JCL to pick out PGM0047 from SDSF;O and 
>copy it into IBMUSE2.QKVS.PRNT133(PGM0047) to be followed by many other steps 
>e.g.

You can do that in batch. Just remember how you type in your commands in SDSF 
to extract that file and try to repeat that in a batch job, line by line, or 
just have your program's output placed in a PDS in the first place.


>Please make my day, thanks,

"go ahead, make my day" - Clint Eastwood in 'Sudden Impact' ;-)

http://www.phrases.org.uk/meanings/242000.html 


>P.S. As an aside can it be edited while in SDSF;O?

Yes. I think it is first ? and then SE line commands ('m not now at a terminal)

HTH!

Groete / Greetings
Elardus Engelbrecht

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to