View previous topic :: View next topic |
Author |
Message |
vinnay Beginner
Joined: 13 Mar 2006 Posts: 15 Topics: 9
|
Posted: Thu Mar 23, 2006 1:35 am Post subject: tso command |
|
|
i want a tso command to find the number of lines in a dataset |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Thu Mar 23, 2006 5:02 am Post subject: |
|
|
Vinnay,
Please be clear in your request. If you are trying to get the number of lines in a given dataset using REXX and do some processing then you can use the following rexx Routine.
Code: |
/* REXX */
"ISPEXEC VIEW DATASET('your.input.dataset') MACRO(mac)"
EXIT 0
|
Macro: 'mac'
Code: |
"ISREDIT MACRO"
"ISREDIT (LINENO) = LINENUM .ZLAST"
SAY LINENO
"ISREDIT BUILTIN CANCEL"
|
Thanks,
Phantom |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
Bithead Advanced

Joined: 03 Jan 2003 Posts: 550 Topics: 23 Location: Michigan, USA
|
Posted: Thu Mar 23, 2006 8:56 am Post subject: |
|
|
Try "FIND P' |
|
Back to top |
|
 |
Jaya Beginner

Joined: 02 Sep 2005 Posts: 77 Topics: 10 Location: Cincinnati
|
Posted: Thu Mar 23, 2006 10:59 pm Post subject: |
|
|
Quote: | A picture string is used to describe the type of string to be found
instead of the exact characters to be found.
Example - ===> find p' _________________ "Great spirits have always encountered violent opposition from mediocre minds."
-Albert Einstein |
|
Back to top |
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|