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
 
Find counts of 'PS files' which are inside a PS file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
techslam

New User


Joined: 03 Dec 2010
Posts: 87
Location: India

PostPosted: Tue Jan 17, 2012 6:40 pm    Post subject: Find counts of 'PS files' which are inside a PS file.
Reply with quote

Hi,

I have an input file which has 10 records. These 10 records are infact names of different PS files.

Input File - LRECL=80, FB
Code:

FILE0 TESTFILE.INPUT0.ABC
FILE1 TESTFILE.INPUT1.ABC
FILE2 TESTFILE.INPUT2.ABC
FILE3 TESTFILE.INPUT3.ABC
FILE4 TESTFILE.INPUT4.ABC
FILE5 TESTFILE.INPUT5.ABC
FILE6 TESTFILE.INPUT6.ABC
FILE7 TESTFILE.INPUT7.ABC
FILE8 TESTFILE.INPUT8.ABC
FILE9 TESTFILE.INPUT9.ABC


Expected output file must have the record count(at position 30 and length=5) details of each of the file names present inside the above input file --

Expected Output . LRECL=80, FB
Code:

FILE0 TESTFILE.INPUT0.ABC    1000
FILE1 TESTFILE.INPUT1.ABC    3000
FILE2 TESTFILE.INPUT2.ABC    0500
FILE3 TESTFILE.INPUT3.ABC    0001
FILE4 TESTFILE.INPUT4.ABC    1485
FILE5 TESTFILE.INPUT5.ABC    5246
FILE6 TESTFILE.INPUT6.ABC    7854
FILE7 TESTFILE.INPUT7.ABC    0023
FILE8 TESTFILE.INPUT8.ABC    1201
FILE9 TESTFILE.INPUT9.ABC    0010


Please guide if this is possible through SORT.

Thanks a lot !
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Tue Jan 17, 2012 7:16 pm    Post subject:
Reply with quote

Hi,

Just a pointer.

You can use ICETOOL's Count operation from REXX.

In REXX, Read input and get the data set names, form ICETOOL call and get/write the record count, write into out data set.

Submit REXX exec in batch.

Here is the example to call ICETOOL from REXX.

http://publib.boulder.ibm.com/infocenter/zos/v1r12/index.jsp?topic=%2Fcom.ibm.zos.r12.icea100%2Fice1ca50259.htm

Please correct me if I'm wrong.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Tue Jan 17, 2012 7:44 pm    Post subject: Reply to: Find counts of 'PS files' which are inside a PS f
Reply with quote

Another possibility, from a similar previous discussion, here.
Back to top
View user's profile Send private message
techslam

New User


Joined: 03 Dec 2010
Posts: 87
Location: India

PostPosted: Thu Jan 19, 2012 2:45 pm    Post subject:
Reply with quote

@Bill

Thanks for above link. That did help icon_smile.gif
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

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