View previous topic :: View next topic
|
Author |
Message |
Mukesh_sharma
New User
Joined: 03 Sep 2008 Posts: 4 Location: India
|
|
|
|
Hi!
i am trying to paste some numbers from a file into a ps i have created but its not taking the proper alignement it shud take ....i have checked profile and autonum as well as number is on .....its a silly thing but would be great if somebody can help out ...
something like this is happening
Code: |
'''''' 437305188
437308 190
437269 749
437151 749
437053 697
441029 493
440987 337
440949 311
440935 120 |
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Is the dataset's LRECL at least 80? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What are you using to do this "paste" |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Which version of which emulation do you use? |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Change num on to num off. It is taking the first six digits of you data as sequence numbers. |
|
Back to top |
|
|
Mukesh_sharma
New User
Joined: 03 Sep 2008 Posts: 4 Location: India
|
|
|
|
hi,
yes the dataset length is 80.
i am simply copying from a notepad and pasting it Ctrl-V.
i did tried using num off but what happened was first six digits of numbers wiped off like this
437305188
437308190
437269749
437151749
437053697
441029493
440987337
440949311
440935120
440913218
440928039
became
000002 437305188
000003 190
000004 749
000005 749
000006 697
000007 493
000008 337
000009 311 |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I use copy from a PC file and paste into a dataset with no problems.
You are putting the cursor in the data area rather than the left margin when you paste ......... aren't you |
|
Back to top |
|
|
Mukesh_sharma
New User
Joined: 03 Sep 2008 Posts: 4 Location: India
|
|
|
|
expat wrote: |
I use copy from a PC file and paste into a dataset with no problems.
You are putting the cursor in the data area rather than the left margin when you paste ......... aren't you |
I am putting it at col 1 ...do u mean to say i shud place it where seq number starts...i tried that also but it truncated the first number also...like this
000001 120
000002 188
000003 190
000004 749
000005 749
000006 697
000007 493
000008 337
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Try ........................
Create a blank line
R20 to replicate it 20 times
Then paste into column 1
Code: |
Command ===>
****** *****************************
000001 _
000002
000003
000004
000005 |
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Per your representation of problem at your end, what Craig has said should work for you. Show us your profile setting to have a better help... |
|
Back to top |
|
|
Mukesh_sharma
New User
Joined: 03 Sep 2008 Posts: 4 Location: India
|
|
|
|
Code: |
****** ***************************** Top of Data ******************************
=PROF> ....JCL (FIXED - 80)....RECOVERY OFF WARN....NUMBER OFF.................
=PROF> ....CAPS ON....HEX OFF....NULLS ON STD....TABS OFF......................
=PROF> ....AUTOSAVE ON....AUTONUM ON....AUTOLIST ON....STATS ON................
=PROF> ....PROFILE LOCK....IMACRO NONE....PACK OFF....NOTE ON..................
=PROF> ....HILITE OFF CURSOR FIND..............................................
****** **************************** Bottom of Data **************************** |
Expat --problem is that i am not getting these sequence numbers itself my file looks like this
Code: |
****** ***************************** Top of Data **************
''''''
''''''
''''''
****** **************************** Bottom of Data ************ |
Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
Expat's instructions were:
Quote: |
Try ........................
Create a blank line
R20 to replicate it 20 times |
but from your figure, it looks like you only tried to insert 20 lines. That is not the same thing |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Quote: |
problem is that i am not getting these sequence numbers itself my file looks like this |
That's not a propblem -- that's the way "inserted lines" will appear untill you write/paste something in front of them.
Either solution ... one from Exapt and other from Craig shuold have worked... we're still missing something or you are not doing exactly what is told to you. Try once again or ask a co-worker. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
In the emulation I use there are options for Paste such as "Field Wrap" and "Line Wrap".
These alter the way data is pasted on your screen.
So, again, which emulation, which version do you use? |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Also, the file you are copying from may not have CR/LF characters,
maybe you are copying one long line instead of many small lines.
In Notepad, check the "Word Wrap" option. If it is checked, uncheck it.
Tell us if something changed. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
ye gods....
Are you sure you should have a TSO id unsupervised
Code: |
Command ===>
****** *****************************
''''''
''''''
''''''
'''''' |
Note position of cursor - this is because I have hit the space bar a few times
Code: |
Command ===>
****** *****************************
'''''' _
''''''
''''''
'''''' |
I have pressed enter
Code: |
Command ===>
****** *****************************
000001
****** ***************************** |
Code: |
Command ===>
****** ****************************
r20 01
****** ****************************
|
Code: |
Command ===>
****** *****************************
000001
000002
000003
000004
000005
000006
000007
000008 |
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
ROTFL -- sorry but wanted to share my laugh, Expat. |
|
Back to top |
|
|
|