View previous topic :: View next topic
|
Author |
Message |
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
Can we write file names into another ps or gdg file which was created previously
ex :
step1 << creates two files like below during processing
Code: |
input.trans(+1)
input.report(+1) |
step2 << has to write the above files with complete generation into another ps or gdg file
is this possible |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
Code: |
//STEP10 EXEC PGM=IDCAMS
//DD1 DD DSN=AAA.BBB.CCC.INPUT1(0),DISP=SHR
//DD2 DD DSN=AAA.BBB.CCC.INPUT2(0),DISP=SHR
//SYSPRINT DD DSN=HLQ...,
// DISP=(NEW,CATLG,DELETE),
// UNIT=DISK,SPACE=(TRK,(1,1),RLSE),
// DCB=(RECFM=FB,...)
//SYSIN DD *
PRINT INFILE(DD1) COUNT(0) CHAR
PRINT INFILE(DD1) COUNT(0) CHAR
/* |
Tried the above code and it is writing entire sysprint details, but i want only the dataset name or gdg with complete generation only. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
you missed this bit
Quote: |
then process that file how you need to in your report |
Gerry |
|
Back to top |
|
|
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
I didin't get u |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You need to read the idcams output (sysprint in the example posted) and pull out the info you want to use. |
|
Back to top |
|
|
r2k1984
New User
Joined: 21 Jun 2005 Posts: 69 Location: chennai
|
|
|
|
put a include cond with sort in next step |
|
Back to top |
|
|
|