IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can we write file names into another ps or gdg file which wa


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Wed Mar 04, 2009 9:32 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Mar 04, 2009 4:56 pm
Reply with quote

This previous topic has a few ideas.
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Thu Mar 05, 2009 7:44 am
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Mar 05, 2009 7:53 am
Reply with quote

Hi,

you missed this bit
Quote:
then process that file how you need to in your report



Gerry
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Thu Mar 05, 2009 2:29 pm
Reply with quote

I didin't get u
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 05, 2009 9:08 pm
Reply with quote

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
View user's profile Send private message
r2k1984

New User


Joined: 21 Jun 2005
Posts: 69
Location: chennai

PostPosted: Mon Mar 09, 2009 3:05 pm
Reply with quote

put a include cond with sort in next step
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top