Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Can we write file names into another ps or gdg file which wa

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Can we write file names into another ps or gdg file which wa
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

Moderator Team Head


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

PostPosted: Wed Mar 04, 2009 4:56 pm    Post subject: Reply to: Can we write file names into another ps or gdg fil
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    Post subject: Can we write file names into another ps or gdg file which wa
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: 1703
Location: Australia

PostPosted: Thu Mar 05, 2009 7:53 am    Post subject:
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    Post subject: Can we write file names into another ps or gdg file which wa
Reply with quote

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

Site Director


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

PostPosted: Thu Mar 05, 2009 9:08 pm    Post subject:
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    Post subject: Reply to: Can we write file names into another ps or gdg fil
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us