Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

TSO or command line utility to generate records in PS file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kishpra

New User


Joined: 24 May 2010
Posts: 91
Location: Pune

PostPosted: Thu Mar 09, 2017 1:11 am    Post subject: TSO or command line utility to generate records in PS file
Reply with quote

HI,

I have a sequential file with LRECL=15 and with no records.

I want this file to have records as below till 100000.

000000000000001
000000000000002
000000000000003
000000000000004
000000000000005
000000000000006
000000000000007
000000000000008
000000000000009

Kindly advise.

Thank you.
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1772
Location: Bloomington, IL

PostPosted: Thu Mar 09, 2017 1:48 am    Post subject:
Reply with quote

IEBDG.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8132
Location: East Dubuque, Illinois, USA

PostPosted: Thu Mar 09, 2017 2:03 am    Post subject:
Reply with quote

You have a number of options:
- as mentioned, IEBDG does it easily (in 4 control statements)
- if your site has SAS, or Easytrieve, you can use one of them
- you could always write a quick program in the language of your choice
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2285
Location: @my desk

PostPosted: Thu Mar 09, 2017 3:05 am    Post subject:
Reply with quote

Besides the options already suggested by Robert and Akatsukami, if you have any of the sort products installed, you could make use of the OUTFIL REPEAT with a SEQNUM (you might need a single-dummy-record input)

Something like this:
Code:
//SORTIN   DD *                               
DUMMY-REC                                     
//SYSIN    DD *                               
 OPTION COPY                                   
 OUTFIL REPEAT=100000,BUILD=(9C'0',SEQNUM,6,ZD)


But I am not sure if this is what you are looking for, after seeing the topic title!
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 Match two files using multiple keys a... santoshks1987 SYNCSORT 10 Fri Aug 18, 2017 10:50 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us