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
 
&LENGTH() in file tailoring skeleton

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Pedro

Senior Member


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

PostPosted: Mon Aug 01, 2011 9:38 pm    Post subject: &LENGTH() in file tailoring skeleton
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: 2441
Location: Netherlands, Amstelveen

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

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

Global Moderator


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

PostPosted: Mon Aug 01, 2011 11:48 pm    Post subject: Re: &LENGTH() in file tailoring skeleton
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

Senior Member


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

PostPosted: Tue Aug 02, 2011 1:32 am    Post subject: Reply to: &LENGTH() in file tailoring skeleton
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am

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