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

&LENGTH() in file tailoring skeleton


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Mon Aug 01, 2011 9:38 pm
Reply with quote

Per the manuals, I think it should work:

Code:
)SET PARTLEN = &LENGTH(&PARTLEVE) 
)SET PARTLEN = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,22, 23, 24, 25, 26, 27, 28, 29,
1, 52, 53, 54, 55, 56, 57, 58,59,60, 61, 62, 63, 64, 65, 66, 67,68)                                                       
--   PART LEN = &PARTLEN   
FTINCL  ABCDE       
ISPF105  - Output overflow                                       
Line to be written greater than data set LRECL (80), ABCDE record-139

I expect &LENGTH to determine the size of a character string and for my variable PARTLEN to be set to that length. It does not seem to do much of anything.

Has anyone used it before?
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Aug 01, 2011 9:39 pm
Reply with quote

Never.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


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

PostPosted: Mon Aug 01, 2011 11:48 pm
Reply with quote

Pedro wrote:
I expect &LENGTH to determine the size of a character string and for my variable PARTLEN to be set to that length. It does not seem to do much of anything.

Has anyone used it before?

I believe that you must use )SETF to set variables to the output of extended functions.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Aug 02, 2011 1:32 am
Reply with quote

Thanks.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 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
Search our Forums:

Back to Top